Is there a way to for the tar command to check for new files that are not already in the archive, or those that have been deleted (for good measure)?
Way for tar to check for new files not in an archive
filestarupdate
Related Topic
- Change only a specific owner when extracting tar archive
- Linux – quick way to get the very last file in a large TAR
- Linux tar archive without parent structure
- Linux – How to check if a directory contains the same files of a TAR archive
- Linux – This does not look like a tar archive
- How to Hash Files in a Tar Archive
Best Answer
You could use
tar -d
to see if local filesystem files are different or missing.To add new files, just use
tar -u
to add only files newer than the copy in the archive.