home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / dump.z / dump
Encoding:
Text File  |  2002-10-03  |  19.8 KB  |  397 lines

  1.  
  2.  
  3.  
  4. dddduuuummmmpppp((((1111MMMM))))                                                              dddduuuummmmpppp((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      dump, rdump - incremental filesystem backup for EFS filesystems
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      dddduuuummmmpppp [ key [ argument ... ] ] filesystem
  13.      rrrrdddduuuummmmpppp [ key [ argument ... ] ] filesystem
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      _d_u_m_p and _r_d_u_m_p are applicable only to EFS filesystems, use _x_f_s_d_u_m_p(1m)
  17.      for XFS filesystems.
  18.  
  19.      _d_u_m_p backs up all files in _f_i_l_e_s_y_s_t_e_m or files changed after a certain
  20.      date to magnetic tape or files.  The _k_e_y specifies the date and other
  21.      options about the dump.  _k_e_y consists of characters from the set
  22.      0000111122223333444455556666777788889999ffffuuuussssCCCCccccddddbbbbWWWWwwwwnnnn.  Any arguments supplied for specific options are
  23.      given as subsequent words on the command line, in the same order as that
  24.      of the options listed.
  25.  
  26.      If no key is given, the _k_e_y is assumed to be 9999uuuu and the _f_i_l_e_s_y_s_t_e_m
  27.      specified is dumped to the default tape device /_d_e_v/_t_a_p_e.
  28.  
  29.      0000----9999  This number is the _d_u_m_p _l_e_v_e_l.  All files modified since the last
  30.           date stored in the file /_e_t_c/_d_u_m_p_d_a_t_e_s for the same _f_i_l_e_s_y_s_t_e_m at
  31.           lesser levels are dumped.  If no date is determined by the level,
  32.           the beginning of time is assumed; thus the option 0000 causes the
  33.           entire filesystem to be dumped.  For instance, if you did a level 2
  34.           dump on Monday, followed by a level 4 dump on Tuesday, a subsequent
  35.           level 3 dump on Wednesday would contain all files modified or added
  36.           to the _f_i_l_e_s_y_s_t_e_m since the level 2 (Monday) backup.  A level 0 dump
  37.           copies the entire filesystem to the dump volume.
  38.  
  39.      ffff    Place the dump on the next _a_r_g_u_m_e_n_t file instead of the default tape
  40.           device /_d_e_v/_t_a_p_e. If the name of the file is ``-'', _d_u_m_p writes to
  41.           standard output.  If the name of the file is of the format
  42.           _m_a_c_h_i_n_e:_d_e_v_i_c_e, the _f_i_l_e_s_y_s_t_e_m is dumped across the network to the
  43.           remote machine.  Since _d_u_m_p is normally run by root, the name of the
  44.           local machine must appear in the ._r_h_o_s_t_s file of the remote machine.
  45.           If the filename _a_r_g_u_m_e_n_t is of the form _u_s_e_r@_m_a_c_h_i_n_e:_d_e_v_i_c_e, _d_u_m_p
  46.           attempts to execute as the specified user on the remote machine.
  47.           The specified user must have a ._r_h_o_s_t_s file on the remote machine
  48.           that allows root from the local machine.  _d_u_m_p creates a remote
  49.           server, /_e_t_c/_r_m_t, on the client machine to access the tape device.
  50.  
  51.      uuuu    If the dump completes successfully, write the date of the beginning
  52.           of the dump on file /_e_t_c/_d_u_m_p_d_a_t_e_s.  This file records a separate
  53.           date for each filesystem and each dump level.  The format of
  54.           /_e_t_c/_d_u_m_p_d_a_t_e_s is readable by people, consisting of one free format
  55.           record per line:  filesystem name, increment level, and _c_t_i_m_e(3C)
  56.           format dump date.  /_e_t_c/_d_u_m_p_d_a_t_e_s can be edited to change any of the
  57.           fields, if necessary.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. dddduuuummmmpppp((((1111MMMM))))                                                              dddduuuummmmpppp((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      ssss    The size of the dump tape is specified in feet.  The number of feet
  75.           is taken from the next _a_r_g_u_m_e_n_t. It is recommended that the CCCC option
  76.           be used instead, as it is more predictable.  When the specified size
  77.           is reached, _d_u_m_p prompts the operator and wait for the reel/volume
  78.           to be changed.
  79.  
  80.      dddd    The density of the tape, expressed in BPI (bytes per inch), is taken
  81.           from the next _a_r_g_u_m_e_n_t. This is used in calculating the amount of
  82.           tape used per reel.  It is recommended that the CCCC option be used
  83.           instead, as it is more predictable.
  84.  
  85.      bbbb    The blocking factor (number of 1-kilobyte blocks written out
  86.           together) is taken from the next _a_r_g_u_m_e_n_t. The default is 10.  The
  87.           default blocking factor for tapes of density 6250 BPI and greater is
  88.           32.  For some network, tape type, and server combinations, there may
  89.           be a significant throughput improvement by using a blocking factor
  90.           of 32, rather than the default of 10, when using rdump.  If values
  91.           larger than 32 are used, _r_e_s_t_o_r_e does not correctly determine the
  92.           block size unless the bbbb option is also used.  To maximize tape
  93.           utilization, use a blocking factor that is a multiple of 8.  For
  94.           most types of supported tape drives, the greatest capacity and tape
  95.           throughput is obtained using a blocking factor of 128 or even
  96.           larger; note that _r_e_s_t_o_r_e(1M) automatically determines the blocking
  97.           factor only if it is 32 or less.
  98.  
  99.      CCCC    This specifies the total tape capacity in 1-kilobyte blocks,
  100.           overriding the cccc, ssss, and dddd arguments if they are also given.  Unlike
  101.           the size and density arguments, the capacity is used as specified,
  102.           no correction factors are applied.  Since capacity lost to retries
  103.           or underruns (by the drive), are not taken into account, you should
  104.           be conservative when specifying capacity.  The _a_r_g_u_m_e_n_t is parsed
  105.           with _s_t_r_t_o_u_l(3C), so it can be in any base (for example, a 0x prefix
  106.           specifies a hexadecimal value, a 0 prefix specifies octal, no prefix
  107.           is decimal).  The argument can have a kkkk, KKKK, mmmm, or MMMM suffix.  The
  108.           first two multiply the value by 1024, the third and fourth multiply
  109.           by 1048576, so a tape with a 2.2 Gbyte capacity might be specified
  110.           as CCCC 2222mmmm allowing 10% loss to retries, and so on.
  111.  
  112.           When the specified capacity has been written, _d_u_m_p prompts the
  113.           operator and wait for the reel/volume to be changed.  It is not
  114.           currently possible to specify different capacities for different
  115.           volumes of multi-volume backups.
  116.  
  117.      cccc    Indicates that the tape is a cartridge tape instead of the standard
  118.           default half-inch reel.  This should always be specified when using
  119.           cartridge tapes, unless the CCCC option is used.  The values for
  120.           blocking factor, size, and density are taken to be 10 (1-kilobyte
  121.           blocks), 5400 feet, and 1000 BPI respectively unless overridden with
  122.           the bbbb, ssss, or dddd option.
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. dddduuuummmmpppp((((1111MMMM))))                                                              dddduuuummmmpppp((((1111MMMM))))
  137.  
  138.  
  139.  
  140.      WWWW    _d_u_m_p tells the operator what filesystems need to be dumped.  This
  141.           information is gleaned from the files /_e_t_c/_d_u_m_p_d_a_t_e_s and /_e_t_c/_f_s_t_a_b.
  142.           The WWWW option causes _d_u_m_p to print out, for each filesystem in
  143.           /_e_t_c/_d_u_m_p_d_a_t_e_s, the most recent dump date and level and highlights
  144.           those filesystems that should be dumped.  The _m_n_t__f_r_e_q field in the
  145.           /_e_t_c/_f_s_t_a_b entry of the filesystem must be nonzero for _d_u_m_p to
  146.           determine whether the filesystem should be dumped or not.  If the WWWW
  147.           option is set, no other option must be given and _d_u_m_p exits
  148.           immediately.
  149.  
  150.      wwww    Is like WWWW, but prints only those filesystems that need to be dumped.
  151.  
  152.      nnnn    Whenever _d_u_m_p requires operator attention, notify by means similar
  153.           to a _w_a_l_l(1) all of the operators in the group ooooppppeeeerrrraaaattttoooorrrr.
  154.  
  155.      _d_u_m_p reads the character device associated with the _f_i_l_e_s_y_s_t_e_m and dumps
  156.      the contents onto the specified tape device.  It searches /_e_t_c/_f_s_t_a_b to
  157.      find the associated character device.
  158.  
  159. NNNNOOOOTTTTEEEESSSS
  160.      _r_d_u_m_p is a link to _d_u_m_p.
  161.  
  162.    OOOOppppeeeerrrraaaattttoooorrrr IIIInnnntttteeeerrrrvvvveeeennnnttttiiiioooonnnn
  163.      _d_u_m_p requires operator intervention on these conditions:  end of tape,
  164.      end of dump, tape write error, tape open error, or disk read error (if
  165.      there are more than a threshold of 32).  In addition to alerting all
  166.      operators implied by the nnnn key, _d_u_m_p interacts with the operator on
  167.      _d_u_m_p's control terminal at times when _d_u_m_p can no longer proceed or if
  168.      something is grossly wrong.  All questions _d_u_m_p poses must be answered by
  169.      typing yyyyeeeessss or nnnnoooo, appropriately.
  170.  
  171.      Since making a dump involves a lot of time and effort for full dumps,
  172.      _d_u_m_p checkpoints itself at the start of each tape volume.  If writing
  173.      that volume fails for some reason, _d_u_m_p, with operator permission,
  174.      restarts itself from the checkpoint after the old tape has been rewound
  175.      and removed and a new tape has been mounted.
  176.  
  177.      _d_u_m_p reports periodically, including usually the percentage of the dump
  178.      completed, low estimates of the number of blocks to write in 1-kilobyte
  179.      blocks (or, more strictly, TP_BSIZE units from _p_r_o_t_o_c_o_l_s/_d_u_m_p_r_e_s_t_o_r_e._h),
  180.      the number of tapes it will take, the time to completion, and the time to
  181.      the tape change.  The estimated time is given as hours:minutes and is
  182.      based on the time taken to dump the blocks already on tape.  It is normal
  183.      for this estimate to show variance, and the estimate improves over time.
  184.      The output is verbose, so that others know that the terminal controlling
  185.      _d_u_m_p is busy and will be for some time.
  186.  
  187.    SSSSuuuuggggggggeeeesssstttteeeedddd DDDDuuuummmmpppp SSSScccchhhheeeedddduuuulllleeee
  188.      It is vital to perform full level 0 dumps at regular intervals.  When
  189.      performing a full dump, bring the machine down to single-user mode using
  190.      sssshhhhuuuuttttddddoooowwwwnnnn ----iiiissss.  Otherwise the dump may not be internally consistent and
  191.      may not restore correctly.  While preparing for a full dump, it is a good
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. dddduuuummmmpppp((((1111MMMM))))                                                              dddduuuummmmpppp((((1111MMMM))))
  203.  
  204.  
  205.  
  206.      idea to clean the tape drive and heads (most types of drives require head
  207.      cleaning for approximately every 30 hours of tape motion).
  208.  
  209.      Incremental dumps allow for convenient backup and recovery of active
  210.      files on a more frequent basis, with a minimum of media and time.
  211.      However, there are some trade-offs.  First, the interval between backups
  212.      should be kept to a minimum (once a day at least).  To guard against data
  213.      loss as a result of a media failure (a rare but possible occurrence), it
  214.      is a good idea to capture active files on (at least) two sets of dump
  215.      volumes.  Keep unnecessary duplication of files to a minimum to save both
  216.      operator time and media storage.  A third consideration is the ease with
  217.      which a particular backed up version of a file can be located and
  218.      restored.  The following four-week schedule offers a reasonable trade-off
  219.      between these goals.
  220.  
  221.               Sun    Mon    Tue    Wed    Thu    Fri
  222.      Week 1:  Full   5      5      5      5      3
  223.      Week 2:         5      5      5      5      3
  224.      Week 3:         5      5      5      5      3
  225.      Week 4:         5      5      5      5      3
  226.  
  227.      Although the Tuesday through Friday incrementals contain extra copies of
  228.      files from Monday, this scheme assures that any file modified during the
  229.      week can be recovered from the previous day's incremental dump.
  230.  
  231.    DDDDuuuummmmpppp PPPPaaaarrrraaaammmmeeeetttteeeerrrrssss
  232.      Since it is suggested that the CCCC option be used instead of the density
  233.      and size options, and since those values are almost never really correct
  234.      for any tape drive except 9 track tapes, recommended values for these
  235.      parameters are no longer suggested in this man page.  As an example of
  236.      the capacity, a typical QIC150 cartridge would use CCCC 111144440000kkkk, a DDS1 90
  237.      meter DAT or 112 meter 8mm (8200 mode) cartridge would use CCCC 1111888800000000kkkk, and a
  238.      DDS2 120 meter cartridge would use CCCC 3333888800000000kkkk.
  239.  
  240. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  241.           /dev/usr /usr efs rw,raw=/dev/rdsk/dks0d1s6 0 0
  242.  
  243.      Here are a few examples on how to dump the /_u_s_r filesystem with the above
  244.      /_e_t_c/_f_s_t_a_b entry.
  245.  
  246.           _dddd_uuuu_mmmm_pppp _0000_CCCC_ffff_uuuu _1111_4444_0000_kkkk _gggg_uuuu_eeee_ssss_tttt_@@@@_kkkk_eeee_ssss_tttt_rrrr_eeee_llll_::::_////_dddd_eeee_vvvv_////_tttt_aaaa_pppp_eeee _////_uuuu_ssss_rrrr
  247.  
  248.      does a level 0 dump of /_u_s_r onto a remote cartridge tape device /_d_e_v/_t_a_p_e
  249.      on host kestrel using the guest account.  _d_u_m_p also updates the file
  250.      /_e_t_c/_d_u_m_p_d_a_t_e_s.
  251.  
  252.           _dddd_uuuu_mmmm_pppp _2222_CCCC_uuuu _1111_4444_0000_kkkk _////_uuuu_ssss_rrrr
  253.  
  254.      does a level 2 dump of /_u_s_r to the local cartridge tape device /_d_e_v/_t_a_p_e
  255.      and also updates the file /_e_t_c/_d_u_m_p_d_a_t_e_s.
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. dddduuuummmmpppp((((1111MMMM))))                                                              dddduuuummmmpppp((((1111MMMM))))
  269.  
  270.  
  271.  
  272.           dump 0Cb 140k 128 /usr
  273.  
  274.      does a level '0' dump of /_u_s_r to the local tape device /_d_e_v/_t_a_p_e using a
  275.      blocking factor of 128.  The tape is specified to have a capacity of 140
  276.      megabytes in the second, which allows for retries, space lost to
  277.      repositioning, and so on.  It is also appropriate for a QIC 150 quarter-
  278.      inch tape drive.  The ordering of the arguments depends on the ordering
  279.      of the key.
  280.  
  281.           _dddd_uuuu_mmmm_pppp _1111_CCCC_ffff _1111_4444_0000_kkkk _////_dddd_eeee_vvvv_////_mmmm_tttt_////_tttt_pppp_ssss_0000_dddd_7777 _////_uuuu_ssss_rrrr
  282.           _dddd_uuuu_mmmm_pppp _1111_CCCC_ffff _1111_4444_0000_kkkk _////_dddd_eeee_vvvv_////_mmmm_tttt_////_tttt_pppp_ssss_0000_dddd_7777 _////_dddd_eeee_vvvv_////_rrrr_dddd_ssss_kkkk_////_dddd_kkkk_ssss_0000_dddd_1111_ssss_6666
  283.  
  284.      both do a level 1 dump of /_u_s_r to the local cartridge tape.
  285.  
  286.           _dddd_uuuu_mmmm_pppp _////_uuuu_ssss_rrrr
  287.  
  288.      does a level 9 dump of /_u_s_r to the local tape device /_d_e_v/_t_a_p_e and
  289.      updates the file /_e_t_c/_d_u_m_p_d_a_t_e_s.
  290.  
  291.           dump 9uCf 2048k /dev/mt/tps0d6nrnsv /os
  292.           dump 9uCf 2m /dev/mt/tps0d6nrnsv /os
  293.  
  294.      Both do a level 9 dump of /_o_s to the local tape device
  295.      /_d_e_v/_m_t/_t_p_s_0_d_6_n_r_n_s_v where the tape device being used is an 8mm tape
  296.      drive, and we are being somewhat optimistic about the capacity.
  297.  
  298.           _dddd_uuuu_mmmm_pppp _WWWW
  299.  
  300.      prints out, for each filesystem in /_e_t_c/_d_u_m_p_d_a_t_e_s, the most recent dump
  301.      date and level and highlights those filesystems that should be dumped.
  302.  
  303. FFFFIIIILLLLEEEESSSS
  304.      /dev/tape        default tape unit to dump to
  305.      /etc/dumpdates   new format dump date record
  306.      /etc/fstab       dump table: filesystems and frequency
  307.      /etc/group       to find group _o_p_e_r_a_t_o_r
  308.  
  309. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  310.      restore(1M), rmt(1M), shutdown(1M), xfsdump(1M), xfsrestore(1M), wall(1),
  311.      ctime(3C), fstab(4), group(4), rhosts(4), dump(5), mtio(7).
  312.  
  313. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  314.      While running, _d_u_m_p emits many verbose messages.
  315.  
  316.      The exit codes are
  317.  
  318.      0  Normal exit
  319.      1  Startup errors encountered
  320.      3  Abnormal termination
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. dddduuuummmmpppp((((1111MMMM))))                                                              dddduuuummmmpppp((((1111MMMM))))
  335.  
  336.  
  337.  
  338. BBBBUUUUGGGGSSSS
  339.      Fewer than 32 read errors on the filesystem are ignored.  Each reel
  340.      requires a new process, so parent processes for reels already written
  341.      just hang around until the entire tape is written.
  342.  
  343.      _d_u_m_p with the WWWW or wwww options does not report filesystems that have never
  344.      been recorded in /_e_t_c/_d_u_m_p_d_a_t_e_s, even if listed in /_e_t_c/_f_s_t_a_b.
  345.  
  346.      It would be nice if _d_u_m_p knew about the dump sequence, kept track of the
  347.      tapes scribbled on, told the operator which tape to mount when, and
  348.      provided more assistance for the operator running _r_e_s_t_o_r_e.
  349.  
  350.      It is recommended that incremental dumps also be performed with the
  351.      system running in single-user mode.
  352.  
  353.      _d_u_m_p needs accurate information regarding the length and density of the
  354.      tapes used.  It can dump the filesystem on multiple volumes, but since
  355.      there is no way of specifying different sizes for multiple tapes, all
  356.      tapes used should be at least as long as the specified/default length.
  357.      If _d_u_m_p reaches the end of the tape volume unexpectedly (as a result of a
  358.      longer than actual length specification), it aborts the entire dump.
  359.      This can be a problem when writing multiple dumps to the same physical
  360.      tape, or when the tape drive supports hardware compression, and it is not
  361.      possible to determine the average compression ratio ahead of time.
  362.      Currently the only solution to this problem in this version of _d_u_m_p is to
  363.      be conservative in specifying capacity.
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.