I use rsync
to backup files to a remote server in a UNIX environment. As my local machine is the only one with write access to the backup files, I know the status of the backup files on the remote machine will not change between my backup cycles.
Can I use this knowledge to avoid comparing the files over the network each time I run my backup? Like storing a local manifest after each backup and comparing the local file system to that manifest instead of the remote filesystem? If rsync can't do this, is there another piece of software, that can?
I am looking for something similar to the --listed-incremental
option for tar
.
Note: The same question applies to one of my deployment scripts, where I know that the remote files won't change between deployments.
Edit to clarify the difference to #481295:
Question #481295 asks whether the rsync scan speed can somehow be improved. My question is more specific as it states that the remote server files will not change if I do not run my backup. Can I use this piece of information to make the comparing of the file list a local process. (Manifest, …?)
find -print0 <options> | rsync --files-from=- --from0 <options>
but the deleting requires verification of the actual remote state.find
. What options do I need to determine which of my files changed locally between the backup cycles?