![]() To demonstrate its usage, let’s say we have the following structure of source and target directories: $ tree This is particularly useful if we need to verify that the command will succeed without any errors, such as incorrect options, or insufficient disk space, or any other potential issues. The output in the last line, (DRY RUN), indicates that it’s a dry run. Total size is 0 speedup is 0.00 (DRY RUN) Sent 189 bytes received 28 bytes 434.00 bytes/sec ![]() -v: display detailed information of what is being doneĪdditionally, we can also do a dry run by passing the -n option, which will simulate the sync with no changes made: $ rsync -Pcauvn source/ target/.-D: preserve device files and special files.-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Īs a result of the rsync command that we ran twice in both directions, both directories are now identical. Sent 297 bytes received 76 bytes 746.00 bytes/sec $ touch target/file0A.bin target/file0B.bin target/file0C.bin $ touch source/file01.bin source/file02.bin source/file03.bin To illustrate the sync operation, let’s first create a sample directory structure: $ mkdir source target
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |