 |
 |
 |
 |
#269666 - 02/21/04 10:57 PM
Re: Server partition out of space
[Re: 234234]
|
Member
Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
|
I think what you want is maybe the option -u after you make the file name change so that it only updates the files in the archive that have changed?<br /><br />NAME<br />tar - The GNU version of the tar archiving utility <br />SYNOPSIS<br />tar [ - ] A --catenate --concatenate | c --create | d --diff --compare | r --append | t --list | u --update | x -extract --get [ --atime-preserve ] [ -b, --block-size N ] [ -B, --read-full-blocks ] [ -C, --directory DIR ] [ --checkpoint ]<br />[ -f, --file [HOSTNAME:]F ] [ --force-local ]<br />[ -F, --info-script F --new-volume-script F ] [ -G, --incremental ] [ -g, --listed-incremental F ] [ -h, --dereference ] [ -i, --ignore-zeros ] [ -j, -I, --bzip ] [ --ignore-failed-read ] [ -k, --keep-old-files ] [ -K, --starting-file F ] [ -l, --one-file-system ] [ -L, --tape-length N ] [ -m, --modification-time ] [ -M, --multi-volume ] [ -N, --after-date DATE, --newer DATE ] [ -o, --old-archive, --portability ] [ -O, --to-stdout ] [ -p, --same-permissions, --preserve-permissions ] [ -P, --absolute-paths ] [ --preserve ]<br />[ -R, --record-number ] [ --remove-files ] [ -s, --same-order, --preserve-order ] [ --same-owner ] [ -S, --sparse ] [ -T, --files-from=F ] [ --null ]<br />[ --totals ]<br />[ -v, --verbose ] [ -V, --label NAME ] [ --version ]<br />[ -w, --interactive, --confirmation ] [ -W, --verify ]<br />[ --exclude FILE ] [ -X, --exclude-from FILE ] [ -Z, --compress, --uncompress ] [ -z, --gzip, --ungzip ]<br />[ --use-compress-program PROG ] [ --block-compress ] [ -[0-7][lmh] ]<br /><br />filename1 [ filename2, ... filenameN ] <br />directory1 [ directory2, ...directoryN ] <br /> <br />DESCRIPTION<br />This manual page documents the GNU version of tar , an archiving program designed to store and extract files from an archive file known as a tarfile. A tarfile may be made on a tape drive, however, it is also common to write a tarfile to a normal file. The first argument to tar must be one of the options: Acdrtux, followed by any optional functions. The final arguments to tar are the names of the files or directories which should be archived. The use of a directory name always implies that the subdirectories below should be included in the archive. <br /><br />FUNCTION LETTERS<br />One of the following options must be used: <br />-A, --catenate, --concatenate <br />append tar files to an archive <br />-c, --create <br />create a new archive<br /><br />-d, --diff, --compare <br />find differences between archive and file system <br />--delete <br />delete from the archive (not for use on mag tapes!)<br /><br />-r, --append <br />append files to the end of an archive<br /><br />-t, --list <br />list the contents of an archive<br /><br />-u, --update <br />only append files that are newer than copy in archive<br /><br />-x, --extract, --get <br />extract files from an archive<br /><br /> <br />OTHER OPTIONS<br />--atime-preserve <br />don't change access times on dumped files<br /><br />-b, --block-size N <br />block size of Nx512 bytes (default N=20)<br /><br />-B, --read-full-blocks <br />reblock as we read (for reading 4.2BSD pipes)<br /><br />-C, --directory DIR <br />change to directory DIR<br /><br />--checkpoint <br />print directory names while reading the archive<br /><br />-f, --file [HOSTNAME:]F <br />use archive file or device F (default /dev/rmt0)<br /><br />--force-local <br />archive file is local even if has a colon<br /><br />-F, --info-script F --new-volume-script F <br />run script at end of each tape (implies -M) <br />-G, --incremental <br />create/list/extract old GNU-format incremental backup<br /><br />-g, --listed-incremental F <br />create/list/extract new GNU-format incremental backup <br />-h, --dereference <br />don't dump symlinks; dump the files they point to<br /><br />-i, --ignore-zeros <br />ignore blocks of zeros in archive (normally mean EOF)<br /><br />-j, -I, --bzip <br />filter the archive through bzip2. Note: -I is deprecated and may get a different meaning in the near future. <br />--ignore-failed-read <br />don't exit with non-zero status on unreadable files<br /><br />-k, --keep-old-files <br />keep existing files; don't overwrite them from archive<br /><br />-K, --starting-file F <br />begin at file F in the archive<br /><br />-l, --one-file-system <br />stay in local file system when creating an archive<br /><br />-L, --tape-length N <br />change tapes after writing N*1024 bytes<br /><br />-m, --modification-time <br />don't extract file modified time<br /><br />-M, --multi-volume <br />create/list/extract multi-volume archive<br /><br />-N, --after-date DATE, --newer DATE <br />only store files newer than DATE<br /><br />-o, --old-archive, --portability <br />write a V7 format archive, rather than ANSI format<br /><br />-O, --to-stdout <br />extract files to standard output<br /><br />-p, --same-permissions, --preserve-permissions <br />extract all protection information <br />-P, --absolute-paths <br />don't strip leading `/'s from file names<br /><br />--preserve <br />like -p -s<br /><br />-R, --record-number <br />show record number within archive with each message<br /><br />--remove-files <br />remove files after adding them to the archive<br /><br />-s, --same-order, --preserve-order <br />list of names to extract is sorted to match archive<br /><br />--same-owner <br />create extracted files with the same ownership <br /><br />-S, --sparse <br />handle sparse files efficiently<br /><br />-T, --files-from=F <br />get names to extract or create from file F<br /><br />--null <br />-T reads null-terminated names, disable -C<br /><br />--totals <br />print total bytes written with --create<br /><br />-v, --verbose <br />verbosely list files processed<br /><br />-V, --label NAME <br />create archive with volume name NAME<br /><br />--version <br />print tar program version number<br /><br />-w, --interactive, --confirmation <br />ask for confirmation for every action<br /><br />-W, --verify <br />attempt to verify the archive after writing it<br /><br />--exclude FILE <br />exclude file FILE<br /><br />-X, --exclude-from FILE <br />exclude files listed in FILE<br /><br />-Z, --compress, --uncompress <br />filter the archive through compress<br /><br />-z, --gzip, --ungzip <br />filter the archive through gzip<br /><br />--use-compress-program PROG <br />filter the archive through PROG (which must accept -d)
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|