

When we first do the sync, we’ll get this interactive prompt: $. Let’s view the directory structure of our source and target directories: $ tree Total size is 0 speedup is 0.00 (DRY RUN) 3. Sent 189 bytes received 28 bytes 434.00 bytes/sec We can also do a dry run using the -n option, which will simulate the sync with no changes made, in order to prevent data loss: $ rsync -Pcauvn source/ target/


-c: skip object based on checksum, not on modified time and size.-P: display statistics of the whole transfer rather than individual files.Sent 401 bytes received 73 bytes 948.00 bytes/sec Sent 297 bytes received 76 bytes 746.00 bytes/secĪnd check our intermediate results: $ tree First, let’s view the structure of source and target directories: $ tree
