snapshot.texi

来自「gnu tar 源码包。 tar 软件是 Unix 系统下的一个打包软件」· TEXI 代码 · 共 142 行

TEXI
142
字号
@c This is part of the paxutils manual.@c Copyright (C) 2005, 2007 Free Software Foundation, Inc.@c Written by Sergey Poznyakoff@c This file is distributed under GFDL 1.1 or any later version@c published by the Free Software Foundation.  A @dfn{snapshot file} (or @dfn{directory file}) is created duringincremental backups (@pxref{Incremental Dumps}).  Itcontains the status of the file system at the time of the dump and isused to determine which files were modified since the last backup.  @GNUTAR{} version @value{VERSION} supports three snapshot fileformats.  The first format, called @dfn{format 0}, is the one used by@GNUTAR{} versions up to 1.15.1. The second format, called @dfn{format1} is an extended version of this format, that contains more metadataand allows for further extensions. It was used by version1.15.1. Starting from version 1.16 and up to @value{VERSION}, the@dfn{format 2} is used.  @GNUTAR{} is able to read all three formats, but will createsnapshots only in format 2.  This appendix describes all three formats in detail.@enumerate 0@cindex format 0, snapshot file  @cindex snapshot file, format 0@item     @samp{Format 0} snapshot file begins with a line containing adecimal number that represents a @acronym{UNIX} timestamp of thebeginning of the last archivation. This line is followed by directorymetadata descriptions, one per line. Each description has thefollowing format: @smallexample@var{nfs}@var{dev} @var{inode} @var{name}@end smallexample@noindentwhere:@table @var@item nfsA single plus character (@samp{+}), if this directory is located onan @acronym{NFS}-mounted partition, or a single space otherwise;@item devDevice number of the directory;@item inodeI-node number of the directory;@item nameName of the directory. Any special characters (white-space,backslashes, etc.) are quoted.@end table@cindex format 1, snapshot file  @cindex snapshot file, format 1@item     @samp{Format 1} snapshot file begins with a line specifying theformat of the file. This line has the following structure:@smallexample@samp{GNU tar-}@var{tar-version}@samp{-}@var{incr-format-version}@end smallexample@noindentwhere @var{tar-version} is the version number of @GNUTAR{}implementation that created this snapshot, and@var{incr-format-version} is the version number of the snapshot format(in this case @samp{1}).   Next line contains two decimal numbers, representing thetime of the last backup. First number is the number of seconds, thesecond one is the number of nanoseconds, since the beginning of theepoch.  Lines that follow contain directory metadata, one line perdirectory. Each line is formatted as follows:@smallexample[@var{nfs}]@var{mtime-sec} @var{mtime-nsec} @var{dev} @var{inode} @var{name}@end smallexample@noindentwhere @var{mtime-sec} and @var{mtime-nsec} represent lastmodification time of this directory with nanosecond precision;@var{nfs}, @var{dev}, @var{inode} and @var{name} have the same meaningas with @samp{format 0}.@cindex format 2, snapshot file  @cindex snapshot file, format 2@item@FIXME{}  A snapshot file begins with a format identifier, as described forversion 1, e.g.:@smallexampleGNU tar-@value{VERSION}-2@end smallexample  This line is followed by newline. Rest of file consists ofrecords, separated by null (@acronym{ASCII} 0)characters. Thus, in contrast to the previous formats, format 2snapshot is a binary file.  First two records are decimal numbers, representing thetime of the last backup.  First number is the number of seconds, thesecond one is the number of nanoseconds, since the beginning of theepoch.  These are followed by arbitrary number of directory records.    Each @dfn{directory record} contains a set of metadata describing aparticular directory.  Parts of a directory record are delimited with@acronym{ASCII} 0 characters.  The following table describes eachpart.  The @dfn{Number} type in this table stands for a decimal numberin @acronym{ASCII} notation.@multitable @columnfractions 0.2 0.2 0.6@headitem Field @tab Type @tab Description@item nfs @tab Character @tab @samp{1} if the directory is located onan @acronym{NFS}-mounted partition, or @samp{0} otherwise;@item mtime-sec @tab Number @tab Modification time, seconds;@item mtime-nano @tab Number @tab Modification time, nanoseconds;@item dev-no @tab Number @tab Device number;@item i-no @tab Number @tab I-node number;@item name @tab String @tab Directory name; In contrast to theprevious versions it is not quoted.@item contents @tab Dumpdir @tab Contents of the directory;@xref{Dumpdir}, for a description of its format.@item @end multitable  Dumpdirs stored in snapshot files contain only records of types@samp{Y}, @samp{N} and @samp{D}.@end enumerate@c End of snapshot.texi  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?