View Single Post
  #2  
Old 23rd March 2011, 17:38
ncoc.nl ncoc.nl is offline
Member
 
Join Date: Feb 2011
Posts: 36
Thanks: 3
Thanked 17 Times in 11 Posts
Arrow

Still work in progress, I did some modifications.

What has changed?
The MySQL backup will now keep 7 day en 3 sunday backups, then the oldest will be deleted in the local backup.
The backup directory structure is changed, it will now create a time directory inside the date directory.
Added echo's for screen output when running the script in screen.

TODO:
  • Purge option on remote FTP server - Delete after 7 days, keep sunday for 3 weeks
  • Purge option on remote FTP server - Delete sunday backup after 22 days
  • Create exclusion "if directory exist"
  • Include ISPconfig and all files needed for a reatore in case of a crash
The script is as/is, it does work but I couldn't test the rotation for the 22 days.

Ronald
Attached Files
File Type: zip wdbackup_0.1.zip (2.1 KB, 265 views)
Reply With Quote