I just noticed that there is a discrepancy between version 3.0.9 and 3.1.0 of rsync.
Running the command
$ rsync -a --delete --backup --backup-dir=../old source/ dest/
with version 3.1.0 gives the output
Created backup_dir ../old/
even when no files are copied to the backup directory. I usually add the current time to the backup directory name, which means I end up with many empty directories. With version 3.0.9 of rsync, a backup directory was only created if needed.
My questions are:
- Is this an intended behaviour, and if so, is it possible to suppress the creation of empty backup directories?
- Can I install version 3.0.9 of rsync alongside with version 3.1.0 such that one is called say rsync309 and the other one rsync310, and then have an alias linking rsync to either of the two (which in my case means that I would keep using rsync 3.0.9 as I found this new behaviour annoying)?