Bug when using rsync -r --delete -b --backup-dir

2020-11-23 Thread CRTS via rsync
Consider following directory structure: > mkdir -p src/empty tgt bkp when making an initial backup with > rsync -r src/ tgt then the empty directory in src will be copied to tgt. However, if the directory is removed from src > rmdir src/empty and rsync is run like > rsync -r --delete -b

Destination file lost with --link-dest and --backup-dir options

2020-11-05 Thread CRTS via rsync
Hello, I am facing an issue when using --link-dest and --backup-dir together. When a source file differs from the file in the destination directory and the --backup and --backup-dir options are provided then a copy of the destination file is made in --backup-dir. However, if additionally --link