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)?
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)?
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.