Difference between revisions of "Rsync"

From Mesopoly 3.0
Jump to navigation Jump to search
m
m
Line 4: Line 4:
 
*delete or exclude large files worthy of deleting (boring divx movies) beforehand, as large files slow the whole affair
 
*delete or exclude large files worthy of deleting (boring divx movies) beforehand, as large files slow the whole affair
 
*to keep backup on TARGET disk and have deleted files delete also on backup disk  
 
*to keep backup on TARGET disk and have deleted files delete also on backup disk  
 +
 
  rsync -avrin --del SOURCE/ TARGET
 
  rsync -avrin --del SOURCE/ TARGET
  
if all seems fine then run
+
if all seems fine then run (logging does not happen with -n)
  
  rsync -avri --del SOURCE/ TARGET
+
  rsync -avri --del --log-file=logname.txt SOURCE/ TARGET
  
 
-a archive mode<br>
 
-a archive mode<br>

Revision as of 08:34, 28 May 2009

  • for some reason first directory (SOURCE) should be written with a trailing slash and second (TARGET) without (?)
  • use -n for 'dry run', especially if usign --del (to check what is to be _deleted_ on destination (TARGET))
  • do delete .Trash .. Recycled and similar stuff before copying, or exclude it
  • delete or exclude large files worthy of deleting (boring divx movies) beforehand, as large files slow the whole affair
  • to keep backup on TARGET disk and have deleted files delete also on backup disk
rsync -avrin --del SOURCE/ TARGET

if all seems fine then run (logging does not happen with -n)

rsync -avri --del --log-file=logname.txt SOURCE/ TARGET

-a archive mode
-v verbose
-r recursive
-i output summary (may not need -v verbose then?)

links