4
0

snapshot.texi 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. @c This is part of the paxutils manual.
  2. @c Copyright (C) 2005 Free Software Foundation, Inc.
  3. @c Written by Sergey Poznyakoff
  4. @c This file is distributed under GFDL 1.1 or any later version
  5. @c published by the Free Software Foundation.
  6. A @dfn{snapshot file} (or @dfn{directory file}) is created during
  7. incremental backups (@pxref{Incremental Dumps}). It
  8. contains the status of the filesystem at the time of the dump and is
  9. used to determine which files were modified since the last backup.
  10. @GNUTAR{} version @value{VERSION} supports two snapshot file
  11. formats. The first format, called @dfn{format 0}, is the one used by
  12. @GNUTAR{} versions up to 1.15.1. The second format, called @dfn{format
  13. 1} is an extended version of this format, that contains more metadata
  14. and allows for further extensions.
  15. @samp{Format 0} snapshot file begins with a line containing a
  16. decimal number that represents the UNIX timestamp of the beginning of
  17. the last archivation. This line is followed by directory metadata
  18. descriptions, one per line. Each description has the following format:
  19. @smallexample
  20. [@var{nfs}]@var{dev} @var{inode} @var{name}
  21. @end smallexample
  22. @noindent
  23. where optional @var{nfs} is a single plus character (@samp{+}) if this
  24. directory is located on an NFS-mounted partition, @var{dev} and
  25. @var{inode} are the device and inode numbers of the directory, and
  26. @var{name} is the directory name.
  27. @samp{Format 1} snapshot file begins with a line specifying the
  28. format of the file. This line has the following structure:
  29. @smallexample
  30. @samp{GNU tar-}@var{tar-version}@samp{-}@var{incr-format-version}
  31. @end smallexample
  32. @noindent
  33. where @var{tar-version} is the version of @GNUTAR{} implementation
  34. that created this snapshot, and @var{incr-format-version} is the
  35. version number of the snapshot format (in this case @samp{1}).
  36. The following line contains two decimal numbers, representing the
  37. time of the last backup. First number is the number of seconds, the
  38. second one is the number of nanoseconds, since the beginning of the
  39. epoch.
  40. Following lines contain directory metadate, one line per
  41. directory. The line format is:
  42. @smallexample
  43. [@var{nfs}]@var{mtime-sec} @var{mtime-nsec} @var{dev} @var{inode} @var{name}
  44. @end smallexample
  45. @noindent
  46. where @var{mtime-sec} and @var{mtime-nsec} represent the last
  47. modification time of this directory with nanosecond precision;
  48. @var{nfs}, @var{dev}, @var{inode} and @var{name} have the same meaning
  49. as with @samp{format 0}.
  50. @c End of snapshot.texi