[_] Backup and email Cron job
Adam Beaumont
adambeaumont at gmail.com
Fri Oct 6 12:56:15 BST 2006
Hi,
I'm trying to set up a cron job to back up a website (tarball) and
email it as an attachment to Google's lovely 2.5 gb of storage.
I have:
tar cvfz - /usr/local/psa/home/vhosts/domain.co.uk/httpdocs/ |gzip
|uuencode domain.co.uk-`date +"\%m\%d\%y"`.tar.gz |mail -s "Website
backup" emailaddress at gmail.com
But I'm not receiving an email, just the cron report thing listing all
the files it's supposedly done.
What am I doing wrong?
Cheers,
Adam
I'm trying to set up a cron job to back up a website (tarball) and
email it as an attachment to Google's lovely 2.5 gb of storage.
I have:
tar cvfz - /usr/local/psa/home/vhosts/domain.co.uk/httpdocs/ |gzip
|uuencode domain.co.uk-`date +"\%m\%d\%y"`.tar.gz |mail -s "Website
backup" emailaddress at gmail.com
But I'm not receiving an email, just the cron report thing listing all
the files it's supposedly done.
What am I doing wrong?
Cheers,
Adam