This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
other:win10apps [2021/04/23 14:22] jypeter [rsync (Linux !)] More details |
other:win10apps [2021/04/26 08:47] jypeter [rsync (Linux !)] Improved |
||
---|---|---|---|
Line 191: | Line 191: | ||
* We have an existing //source// ''/mnt/h/test/'' directory that we would like to //mirror// to another disk or //destination//, as ''/mnt/i/test/''.\\ i.e we want to recursively copy the content of ''test/'' to a ''test/'' directory //somewhere else// | * We have an existing //source// ''/mnt/h/test/'' directory that we would like to //mirror// to another disk or //destination//, as ''/mnt/i/test/''.\\ i.e we want to recursively copy the content of ''test/'' to a ''test/'' directory //somewhere else// | ||
- | * Show what would be done, but do not do it (yet)\\ <wrap em>Note that we have a trailing ''/'' after the source directory, and no ''/'' after the destination directory</wrap>\\''rsync %%--%%dry-run -avW -C /mnt/h/test/ /mnt/i/test'' | + | * Show what would be done, but do not do it (yet)\\ <wrap em>Note that we have a trailing ''/'' after the source directory, and NO ''/'' after the destination directory</wrap>\\ ''rsync %%--%%dry-run -avW -C /mnt/h/test/ /mnt/i/test'' |
- | * Note: using ''-C'' makes sure that files and directories considered as temporary will not be copied. Maybe you don't want to use this! | + | * Note: using ''-C'' makes sure that files and directories considered as temporary will not be copied.\\ Do NOT use the ''-C'' option if you really want to copy all the files! |
* Same as above, without the //verbose// mode. Probably nothing will be displayed on the screen\\ ''rsync %%--%%dry-run -aW -C /mnt/h/test/ /mnt/i/test'' | * Same as above, without the //verbose// mode. Probably nothing will be displayed on the screen\\ ''rsync %%--%%dry-run -aW -C /mnt/h/test/ /mnt/i/test'' | ||
* Actually **copy** the files, without displaying anything\\ ''rsync -aW -C /mnt/h/test/ /mnt/i/test'' | * Actually **copy** the files, without displaying anything\\ ''rsync -aW -C /mnt/h/test/ /mnt/i/test'' |