![]() ![]() d, -diff, -compare find differences between archive and file system Main operation mode: -A, -catenate, -concatenate append tar files to an archive wildcards-match-slash wildcards match '/' (default for exclusion) wildcards use wildcards (default for exclusion) no-wildcards-match-slash wildcards do not match '/' no-ignore-case case sensitive matching (default) no-anchored patterns match after any '/' (default for X, -exclude-from=FILE exclude patterns listed in FILEįilename matching options (affect both exclude and include patterns): -anchored patterns match file name start verbatim-files-from -T reads file names verbatim (no escape or option unquote unquote input file or member names (default) T, -files-from=FILE get names to extract or create from FILE recursion recurse into directories (default) null -T reads null-terminated names implies no-verbatim-files-from -T treats file names starting with dash as no-unquote do not unquote input file or member names no-recursion avoid descending automatically in directories no-null disable the effect of the previous -null option exclude-vcs-ignores read exclude patterns from the VCS ignore files ![]() exclude-vcs exclude version control system directories exclude-tag-under=FILE exclude everything under directories exclude-tag-all=FILE exclude directories containing FILE exclude-tag=FILE exclude contents of directories containing FILE, Read exclude patterns for each directory and its exclude-ignore=FILE read exclude patterns for each directory from exclude-caches-under exclude everything under directories containing exclude-caches-all exclude directories containing CACHEDIR.TAG exclude-caches exclude contents of directories containingĬACHEDIR.TAG, except for the tag file itself exclude-backups exclude backup and lock files exclude=PATTERN exclude files, given as a PATTERN C, -directory=DIR change to directory DIR Local file name selection: -add-file=FILE add given FILE to the archive (useful if its name Tar -xf archive.tar # Extract all files from archive.tar. ![]() Tar -tvf archive.tar # List all files in archive.tar verbosely. Tar -cf archive.tar foo bar # Create archive.tar from files foo and bar. Restore individual files from the archive. GNU 'tar' saves many files together into a single tape or disk archive, and can This is the new version of GNU’s tar feature, which requires gzip to be installed at the same time.Īll Commands available for Tarball tar -help Usage: tar. Z: Create and unpack backup files using compression. If you do not use the T parameter, you will need a parameter indicating the path to the backup file and directory. T: is followed by a file parameter that specifies the path to read each file to be backed up from this file. T: display the contents of the backup file The parameter following it is the output backup file name. V: indicates echo mode (Verbose), which will generate a list of files backed upį: Specify the backup file to be used. The Linux utility tar was originally designed to make tape archives (copying files and directories to tape and then extracting or restoring files from the archive), and existing applications can use it for any device, it is one of the most commonly used commands in data backup. Tarball file format compressed on Linux can be opened on Windows using WinRAR. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |