I have two machines, nearbyMachine
and remoteMachine
.
On nearbyMachine
, files are being created in a folder.
nearbyMachine/
myFiles/
file1
file2
file3
...
I want to have the files on remoteMachine
as well -- but sorted into directories:
remoteMachine/
filesByCategory/
loveLetters/
file1
file2
...
otherLetters/
file3
...
...
So I...
- Copy all the files from the folder to a temporary folder on
remoteMachine
over the Internet, - Run a software on
remoteMachine
that removes all files from the temporary folder, that are already present in any subfolder offilesByCategory
. - Manually sort the files into existing or new subfolders of
filesByCategory
.
The problem: As time goes by, the first step takes more and more time. Hours. And it is inelegant.
Is there any way, for example with rsync, that I can copy only the files that are not already present anywhere on the remote machine? Or at least get a list of the files I have to copy?
In my understanding, all synchronization programs can only compare one single directory on both sides.
rsync
do its normal mirroring, then use links to create the additional, independent directory structure on the remote machine?@harrymc
for me to be notified.)