I have searched the forum for answers to this question but I must not be using the right keywords.
I have been trying to create a cron job that would backup all of my databases and email them to me 2 times a week. I asked JPC support for help but they "do not offer support on scripting". Understandable.
Here is the cron job as it stands now and it doesn't work.
/usr/bin/mysqldump -ce –user=username –password=password dbname | /bin/gzip | /usr/bin/uuencode dbbackup_e-$(date +\%Y-\%m-\%d).gz | /bin/mail -s 'db Backup' email@domain.com
I do get an email but this is the content without any attachment.
begin 644 dbbackup_e-2011-01-03.gz
4'XL(`#)`]4X``P,`````````````
`
end
Any help would be appreciated.


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks