Changes

Jump to navigation Jump to search
570 bytes added ,  09:30, 3 August 2015
Line 4: Line 4:  
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
 +
 +
**-r – (as mentioned above)
 +
    -l – copy symlinks as symlinks
 +
    -p – preserve permissions
 +
    -t – preserve modification times
 +
    -g – preserve group
 +
    -o – preserve owner
 +
    -D – preserve device files and special files
 +
 +
-v – increase verbosity
 +
-z – compress file data during the transfer
 +
-X – preserve extended attributes
 +
-A – preserve ACLs (implies -p option)
 +
-S – handle sparse files efficiently
 +
--delete – if the file is deleted from the source directory, delete it from the target directory
 +
    
1. -a = recurse into directories, links (copy symlinks as symlinks), perms (preserve permissions), times (preserve modification times), group (preserve group), owner (preserve owner), preserve device files, and preserve special files.<br />
 
1. -a = recurse into directories, links (copy symlinks as symlinks), perms (preserve permissions), times (preserve modification times), group (preserve group), owner (preserve owner), preserve device files, and preserve special files.<br />

Navigation menu