Hi all,
Im trying to rename my backup file to backup-“the-time-here”.sql using mysqldump via cron jobs.
I have the cron job backing up the file at the correct times but when im trying to put in the time its giving me a file like this.
( i cant find any examples of just the time so i know that the code below includes the date)
backup-Monday 13-10-2012 13:01:02.sql < - this is giving me an invalid file?
any help would be great.
my cron job code
-
-
-
-
- mysqldump --username=USERNAME --password=Password DATABASENAME > /pathtobackuplocation/backup-
date +%y%m%d
.sql
- mysqldump --username=USERNAME --password=Password DATABASENAME > /pathtobackuplocation/backup-
-
-
-
Thanks Ian