Zum Anfertigen von Backups ist es unerlässlich und für einen Linuxuser ein Standardwerkzeug. Das „.tar“-Archiv:
Die oder besser gesagt eine Syntax für ein tar (anfertigen:)
tar -cvzf file.tar.gz inputfile1 inputfile2
Die entsprechende Syntax um das tar (zu entpacken:)
tar -xvzf file.tar.gz
Die Optionen für tar / gzip im Detail:
literal, locale, shell, shell-always, c, escape
-r, –reverse reverse order while sorting
-R, –recursive list subdirectories recursively
-s, –size (with -l, print size of each file, in blocks)
-S (sort by file size)
–sort=WORD (extension -X, none -U, size -S, time -t,)
version -v, status -c, time -t, atime -u,
access -u, use -u
–time=WORD with -l, show time as WORD instead of modification
time: atime, access, use, ctime or status; use
specified time as sort key if –sort=time
–time-style=STYLE with -l, show times using style STYLE:
full-iso, long-iso, iso, locale, +FORMAT.
FORMAT is interpreted like `date‘; if FORMAT is
FORMAT1<newline>FORMAT2, FORMAT1 applies to
non-recent files and FORMAT2 to recent files;
if STYLE is prefixed with `posix-‚, STYLE
takes effect only outside the POSIX locale
-t sort by modification time
-T, –tabsize=COLS assume tab stops at each COLS instead of 8
-u with -lt: sort by, and show, access time
with -l: show access time and sort by name
otherwise: sort by access time
-U do not sort; list entries in directory order
-v sort by version
-w, –width=COLS assume screen width instead of current value
-x list entries by lines instead of by columns
-X sort alphabetically by entry extension
-1 list one file per line