I have been trying to work with setting up a cron script to automatically send the contents of the Daily backups folder to my FTP server. I cannot use the trixbox module backup because I have read about all the bugs it contains, nor can I use the FTP backup in amportal.conf because for some reason it doesn't work on my newer setups. I used this website to set up the FTP backup:
http://bunkerhollow.com/blogs/matt/archive/2008/06/04/backup-trix...
I got up to the part where it gives me a cron script to backup weekly. I dont want to backup weekly, I want to backup nightly and I want to specify a time.
Here is the original script that needs to be added to /etc/crontab
01 0 * * 1 root /usr/local/sbin/ftpbackup
"This will run the script at 12:01am every Monday morning."
This is what I want to change, I need the times different depending on the machine so that I don't congest my FTP server with a few servers sending their stuff to me all at once. As well, I would like to set this to the "daily" mode instead of the "weekly" mode
This part isn't a major but it would be nice to have. This script will delete the backed up file Monday at 1:01 am. It would be nice to know how to change that to something like 7 am daily- even during the day wouldnt be a problem as it will not interfere with asterisk
01 1 * * root rm -f /var/lib/asterisk/backups/Weekly/*
Thanks in advance for all help
Member Since:
2008-10-08