Changes

Jump to navigation Jump to search
4 bytes added ,  09:38, 3 August 2015
Line 1: Line 1:  
== Create local backups ==
 
== Create local backups ==
  rsync -av --delete /Origen/ /Destino/
+
  rsync -avzXAS --delete /Origen/ /Destino/
 
The code above will synchronize the contents of Directory1 to Directory2, and leave no differences between the two. <br />
 
The code above will synchronize the contents of Directory1 to Directory2, and leave no differences between the two. <br />
 
If rsync finds that Directory2 has a file that Directory1 does not, it will delete it. <br />
 
If rsync finds that Directory2 has a file that Directory1 does not, it will delete it. <br />
 
If rsync finds a file that has been changed, created, or deleted in Directory1, it will reflect those same changes to Directory2.
 
If rsync finds a file that has been changed, created, or deleted in Directory1, it will reflect those same changes to Directory2.
 +
    
* -a – The archive option = -rlptgoD
 
* -a – The archive option = -rlptgoD
Line 13: Line 14:  
** -o – preserve owner
 
** -o – preserve owner
 
** -D – preserve device files and special files
 
** -D – preserve device files and special files
   
* -v – increase verbosity
 
* -v – increase verbosity
 
* -z – compress file data during the transfer
 
* -z – compress file data during the transfer

Navigation menu