Go to the previous, next section.

Updating an Archive

(This message will disappear, once this node revised.)

The `--update' (`-u') option updates a tar archive by comparing the date of the specified archive members against the date of the file with the same name. If the file has been modified more recently than the archive member, then the archive member is deleted (as with `--delete') and then the file is added to the archive (as with `--append' (`-r')). On media where the `--delete' option cannot be performed (such as magnetic tapes), the `--update' (`-u') option similarly fails.

If no archive members are named (either on the command line or via `--files-from=file-of-names' (`-T file-of-names')), then the entire archive is processed in this manner.

Go to the previous, next section.