wget backup fails

wget backup fails

by Stephen Ewen -
Number of replies: 0
Hi all.

I'm trying to backup my site and following the directions at http://docs.moodle.org/en/Site_backup#Data_files but I keep getting an error message.

I'm on a hosted server and working through CPanel.

To run the backup, I'm adding a cron job.

Here are the strings I've tried to run:

wget --http-user=username --http-password=password http://your-site.com:2082/getbackup/backup-your-site.com-`date +"%-m-%d-%Y"`.tar.gz

wget --http-user=username --http-password=password http://your-site.com:2082/getbackup/backup-your-site.com-`date+"%-m-%d-%Y"`.tar.gz

The only difference is the space after the "+" character.

Both give the same error message:

/bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file

I'm long past the point of desperate to make a backup.

Any help would be very appreciated!

Average of ratings: -