I have two source folders I would like to keep synced into the same destination folder. I usually give two separate commands:
rsync -auP --delete-before "/source1/" "/detination/" rsync -auP --delete-before "/source2/" "/detination/" However, when giving the 2nd command, files that were copied from source1 since they are of course not present in source2 they are being removed because of the --delete-before option.
Do you know a way to keep a 1:1 copy of the two sources both syncing into the same destination? I know I could do something like this to resolve:
rsync -auP --delete-before "/source1/" "/detination/source1/" rsync -auP --delete-before "/source2/" "/detination/source2/" But just wanted to check if I can still get the result as mentioned earlier.