"Nicholas Mulyawan" <23*4*7*
4@s*u*e*t*u*a*e*u*a*> wrote:
> I understand that the -n option asks for what files I want to copy so I'm assuming the specified files only move from one directory to the another in a one-sided manner..?
Hi Nicholas,
You have a misunderstanding here.
Requesting -n does not "ask" for anything (there's nothing interactive about the mysync program once it has started).
Providing the -n option requests that everything occurs in the standard way, except that files are not actually copied/synced.
There's an equivalent option for the standard
make
utility:
-n, --just-print, --dry-run, --recon
Print the commands that would be executed, but do not execute them.
The files to be synched between 2 (or more directories) can be copied in each direction.
If you think of each top-level directory has a 'set' of files, the final result of synching is that the 'union' of all files exist in each top-level directory.