When updating a backup using rsync --include-from=files --exclude-deleted
, you can get feedback something like:
Added file: new.file
Added file: other.file
Deleted file: deleted.file
etc.
Is it possible to achieve the same with a standard UNIX archiving tool (zip, tar, etc.), eg. new files are added to the archive, and deleted files are removed?
For example,zip -ru@ out < files
updates an archive based on an inclusion list, but deleted files are not deleted. So you're left with a lot of leftover trash in the archive.
Of course, you can delete the archive and recreate the whole thing, but then you get like thousands lines of output which say that all files were added, so you get no "delta" output, so to speak.
(A side question is how you can include files based on wildcards in the inclusion file, but this may be suited for a separate question.)