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/19 12:14] jypeter [rsync (Linux !)] Added warnings |
other:win10apps [2021/04/23 14:22] jypeter [rsync (Linux !)] More details |
||
---|---|---|---|
Line 142: | Line 142: | ||
==== rsync (Linux !) ==== | ==== rsync (Linux !) ==== | ||
- | ''rsync'' is a convenient Linux command that can be used for mirroring a directory hierarchy to another location on the same computer (e.g. a removable disk) or a remote server. It can also be used on a Windows 10 computer where [[other:win10wsl|WSL + Ubuntu is installed]]! But it is probably easier to use the //mirroring// option of [[other:win10_syncback|SyncBack]]. | + | ''rsync'' is a convenient **Linux** command that can be used for //mirroring// a directory hierarchy to another location on the same computer (e.g. a removable disk) or a remote server. It can also be used on a Windows 10 computer where [[other:win10wsl|WSL + Ubuntu is installed]]! On Windows, it is easier to use the //mirroring// option of [[other:win10_syncback|SyncBack]]. |
+ | |||
+ | //Mirroring// means in the ''rsync'' case that we will **only copy new or changed files**. The first //copy// may take some time, but will be much faster afterwards, when only a few files have been created/changed and have to be copied. Or, if a copy is interrupted, the files already copied will not be copied a second time. | ||
<WRAP center round important 60%> | <WRAP center round important 60%> | ||
- | **Warning!** It's easy to lose files with ''rsync'' if you use the wrong syntax or options! | + | **Warning!** It is easy to lose files with ''rsync'' if you use the wrong syntax or options! |
+ | |||
+ | Mirroring //no files// by mistake, to a place where there are files, with the ''%%--%%delete'' option, means that existing files or whole directory hierarchies will be deleted! | ||
* Be sure to understand the basic options, and use ''%%--%%dry-run'' (simulate what would be done) and ''-v'' (verbose) before performing an actual synchronization | * Be sure to understand the basic options, and use ''%%--%%dry-run'' (simulate what would be done) and ''-v'' (verbose) before performing an actual synchronization |