Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
personal:portfolio:rsync-python-script [2014/07/26 20:20]
antonello created
personal:portfolio:rsync-python-script [2018/06/18 15:11] (current)
Line 1: Line 1:
 ====== Rsync Python script ====== ====== Rsync Python script ======
  
-A Python script ​to wrap rsync to have rolling backups for the latest n days, deleting the old ones. Nice because in this approach rsync uses hard links to build incremental backups that appear as full backups.+A Python script ​that wrap rsync to have rolling backups for the latest n days, deleting the old ones. Nice because in this approach rsync uses hard links to build incremental backups that appear as full backups. 
 + 
 +Of course it needs to be run under cron. 
 Fur the actual rsync call that is used in this script see [[http://​www.sanitarium.net/​golug/​rsync_backups_2010.html]] Fur the actual rsync call that is used in this script see [[http://​www.sanitarium.net/​golug/​rsync_backups_2010.html]]
  
Line 88: Line 91:
   print "** INFO: rsync backup completed - "​+str(now.year)+"​."​+str(now.month)+"​."​+str(now.day)+"​ "​+str(now.hour)+":"​+str(now.minute)   print "** INFO: rsync backup completed - "​+str(now.year)+"​."​+str(now.month)+"​."​+str(now.day)+"​ "​+str(now.hour)+":"​+str(now.minute)
  
 +
 +~~DISCUSSION~~
  
personal/portfolio/rsync-python-script.txt · Last modified: 2018/06/18 15:11 (external edit)
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0