I have a command which looks like this:
rsync -avp -e ssh /folder user@server:/backups/2 --link-dest=../1
Folder number increases every day.
This command runs every night, over my very very slow internet connection. If it did not complete during the night, the process will be killed because otherwise my connection is unusable during the day. This would work fine, if Rsync starts with creating hard-links, and then does the data-transfer.
Unfortunately, it looks like Rsync performs its tasks on alphabetical order. So sometimes it starts with transferring data and then afterwards it will create its hard links.
If the process does not complete overnight, it needs to upload even more data the next night, because the hardlinks were not created in folder 2!
Is there a way to make Rsync create the hard links first and then do the filetransfers?
Thanks a lot!