Difference between revisions of "Rsync"

From Mesopoly 3.0
Jump to navigation Jump to search
m
m
Line 1: Line 1:
*for some reason first directory should be with trailing slash and second (target) without (?)
+
*for some reason first directory (SOURCE) should be written with a trailing slash and second (TARGET) without (?)
*use -n for 'dry run' (to check what is to be _deleted_)
+
*use -n for 'dry run', especially  if usign --del (to check what is to be _deleted_ on destination (TARGET))
*do delete .Trash Recycled and similarly funky stuff
+
*do delete .Trash Recycled and similar stuff before copying, or exclude it
*delete movies ie. large files worthy of deleting beforehand, as it slows 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 -avr --del SOURCE/ TARGET
 
  rsync -avr --del SOURCE/ TARGET
 +
 +
-a archive mode<br>
 +
-v verbose<br>
 +
-r recursive<br>
  
 
==links==
 
==links==
 
*http://lists.samba.org/archive/rsync/ mailing list / forum
 
*http://lists.samba.org/archive/rsync/ mailing list / forum
 
*google "man rsync"
 
*google "man rsync"

Revision as of 08:10, 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 -avr --del SOURCE/ TARGET

-a archive mode
-v verbose
-r recursive

links