View Single Post
  #3  
Old 19th March 2013, 09:09
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 186
Thanks: 7
Thanked 47 Times in 41 Posts
Default

Quote:
Done. Now your server will be fully backup to a remote FTP server and all files, older than N days will be deleted.
I prefere numbered-backups instead of adding the date to each backup.

Instead of server01-files-$NOW.tar.gz i use something like server01-files-$DOY.tar.gz

Code:
DOY1=`date +%j`
DOY=`expr $DOY1 % 10` # for 10 Backups (0..9).
No need to delete old files, they are just overwritten.
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote