set -x
x=`date +%y%m%d.%H%M`
tar zcf thunderb-mail-${x}.tgz ~/.mozilla-thunderbird
mv thunderb-mail-${x}.tgz /media/MY_HARDDRIVE/email_backups/
Then invoke in cron using:
crontab -e
add something like:
30 4 * * * ~/./backup_emails.sh
which does the backup at 04.30 every day
No comments:
Post a Comment