[[dump&restore]]

http://www.jp.freebsd.org/QandA/HTML/1859.html

http://www.ebisu-it.com/freebsd-tips/ft-8/

/usrは、これでw

#!/bin/sh
#/usr/local/bin/rsync -av --delete / www.smb.net:/usr/Backups/hotshot/
/usr/local/bin/rsync -av --exclude="*.core" --inplace /usr /bkup/usr

k222# df
Filesystem   1K-blocks     Used     Avail Capacity  Mounted on
/dev/ar0s1a     507630    99930    367090    21%    /
devfs                1        1         0   100%    /dev
/dev/ar0s1e     507630      412    466608     0%    /tmp
/dev/ar0s1f  464941328 52413448 375332574    12%    /usr
/dev/ar0s1d    3029646   605288   2181988    22%    /var
devfs                1        1         0   100%    /var/named/dev
devfs                1        1         0   100%    /usr/home/scponly/dev
/dev/ad12s1a    507630       10    467010     0%    /bkup
/dev/ad12s1e    507630        4    467016     0%    /bkup/tmp
/dev/ad12s1f 464926440        4 427732322     0%    /bkup/usr
/dev/ad12s1d   3031694        4   2789156     0%    /bkup/var
    # dump 0af - /     | ( cd /bkup      && restore rf -)
    # dump 0af - /var  | ( cd /bkup/var  && restore rf -)
    # dump 0af - /usr  | ( cd /bkup/usr  && restore rf -)
    # dump 0af - /tmp  | ( cd /bkup/tmp  && restore rf -)
k222# dump 0af - /     | ( cd /bkup      && restore rf -)
 DUMP: WARNING: should use -L when dumping live read-write filesystems!
 DUMP: Date of this level 0 dump: Fri Apr 29 16:45:30 2011
 DUMP: Date of last level 0 dump: the epoch
 DUMP: Dumping /dev/ar0s1a (/) to standard output
 DUMP: mapping (Pass I) [regular files]
 DUMP: mapping (Pass II) [directories]
 DUMP: estimated 99297 tape blocks.
 DUMP: dumping (Pass III) [directories]
 DUMP: dumping (Pass IV) [regular files]
warning: ./.snap: File exists
warning: ./tmp: File exists
warning: ./usr: File exists
warning: ./var: File exists
 DUMP: DUMP: 99306 tape blocks
 DUMP: finished in 9 seconds, throughput 11034 KBytes/sec
 DUMP: DUMP IS DONE
k222# dump 0af - /var  | ( cd /bkup/var  && restore rf -)
 DUMP: WARNING: should use -L when dumping live read-write filesystems!
 DUMP: Date of this level 0 dump: Fri Apr 29 16:48:46 2011
 DUMP: Date of last level 0 dump: the epoch
 DUMP: Dumping /dev/ar0s1d (/var) to standard output
 DUMP: mapping (Pass I) [regular files]
 DUMP: mapping (Pass II) [directories]
 DUMP: estimated 606628 tape blocks.
 DUMP: dumping (Pass III) [directories]
 DUMP: dumping (Pass IV) [regular files]
warning: ./.snap: File exists
expected next file 188453, got 188452
expected next file 188464, got 188459
expected next file 188464, got 188460
expected next file 188464, got 188461
expected next file 188464, got 188463
expected next file 188470, got 188468
expected next file 188470, got 188469
 DUMP: DUMP: 606191 tape blocks
 DUMP: finished in 20 seconds, throughput 30309 KBytes/sec
 DUMP: DUMP IS DONE
k222# dump 0af - /usr  | ( cd /bkup/usr  && restore rf -)
 DUMP: WARNING: should use -L when dumping live read-write filesystems!
 DUMP: Date of this level 0 dump: Fri Apr 29 16:50:54 2011
 DUMP: Date of last level 0 dump: the epoch
 DUMP: Dumping /dev/ar0s1f (/usr) to standard output
 DUMP: mapping (Pass I) [regular files]
 DUMP: mapping (Pass II) [directories]
 DUMP: estimated 53043317 tape blocks.
 DUMP: dumping (Pass III) [directories]
 DUMP: dumping (Pass IV) [regular files]
warning: ./.snap: File exists
 DUMP: 1.05% done, finished in 29:07 at Sat Apr 30 22:17:26 2011
unknown tape header type 1196314761
abort? [yn]n
resync restore, skipped 9 blocks
expected next file 4522012, got 0
./share/doc/nl_NL.ISO8859-1/books/handbook/install/example-dir1.png: not found on tape
./share/doc/nl_NL.ISO8859-1/books/handbook/install/example-dir2.png: not found on tape
./share/doc/nl_NL.ISO8859-1/books/handbook/install/example-dir3.png: not found on tape
./share/doc/nl_NL.ISO8859-1/books/handbook/install/adduser1.png: not found on tape
./share/doc/nl_NL.ISO8859-1/books/handbook/install/adduser2.png: not found on tape
unknown tape header type 1593585698
abort? [yn] n
resync restore, skipped 1 blocks
expected next file 4522021, got 0
unknown tape header type -1401555986
abort? [yn] n
resync restore, skipped 2 blocks
expected next file 4522021, got 0
unknown tape header type 510142068
abort? [yn] n
resync restore, skipped 4 blocks
expected next file 4522021, got 0
unknown tape header type 1800916336
abort? [yn] n
resync restore, skipped 9 blocks
expected next file 4522021, got 0
./share/doc/nl_NL.ISO8859-1/books/handbook/install/console-saver1.png: not found on tape
./share/doc/nl_NL.ISO8859-1/books/handbook/install/console-saver2.png: not found on tape
./share/doc/nl_NL.ISO8859-1/books/handbook/install/console-saver3.png: not found on tape
./share/doc/nl_NL.ISO8859-1/books/handbook/install/console-saver4.png: not found on tape
./share/doc/nl_NL.ISO8859-1/books/handbook/install/disklabel-auto.png: not  found on tape
unknown tape header type 559903
abort? [yn] n
resync restore, skipped 1 blocks
expected next file 8887682, got 0
./var/db/freebsd-update/files/42ed690e23ee1ec6bcd06d1750e7eb318e555d94b9268fd566d0da4650fcd6cd.gz : not found on tape
./var/db/freebsd-update/files/2a1adbe2333827908577f5c6dbbaf303859a426e9ecac11e8860960063e44bf5.gz : not found on tape
./var/db/freebsd-update/files/de73d94bd9afb35217926c021da1167c6547c1900560c806ebd1008671222c8a.gz : not found on tape
./var/db/freebsd-update/files/d3b1389ca6e03390d589675763ba096012dd5250a58309db7d494deafbc43f5b.gz : not found on tape
./var/db/freebsd-update/files/107f4f8372b7b20630920d6ca4053caf8cdb210fe9711567190d57b58e6f59a8.gz : not found on tape
./var/db/freebsd-update/files/30b77ea32988d368b3a5a81d22efc5f73553b26d74e18177a1959359b4c8df7b.gz : not found on tape
./var/db/freebsd-update/files/2bd5339d6c878bfb5f2203f6c0566501733855e2baeac14278e89a7243a3976f.gz : not found on tape
unknown tape header type 1288117844
abort? [yn] n
expected next file 8887690, got 0
expected next file 8887690, got 8887683
expected next file 8887690, got 8887684
expected next file 8887690, got 8887685
expected next file 8887690, got 8887686
unknown tape header type 559903
abort? [yn] n
resync restore, skipped 3 blocks
expected next file 8887692, got 0
unknown tape header type 765735214
abort? [yn] n
resync restore, skipped 1 blocks
expected next file 8887692, got 0
./var/db/freebsd-update/files/4bf7830b9e21e400165b9f4207dce75ad98e7cb254f38224baa81d0f15959752.gz : not found on tape
unknown tape header type 559903
abort? [yn] n
resync restore, skipped 2 blocks
expected next file 8887694, got 0
./var/db/freebsd-update/files/52be7cac4a17fbbd0e0c75a4ca1c800a1e9be5a1ac20246badf19c7b3a9e3ef6.gz : not found on tape
./var/db/freebsd-update/files/4f858d49f915221eae4ebcc900e6cf70436e6e463face62d78e46743bd5afe4c.gz : not found on tape
./var/db/freebsd-update/files/5f693273806a5f870e8e97f5320b82ddce37e049e678cf6cc533181a1829ac66.gz : not found on tape
./var/db/freebsd-update/files/be38d930f7f8561a92f142fa627f85e0fadea0233504f23e4592af716ec41206.gz : not found on tape
./var/db/freebsd-update/files/fbfe9c7aa3b61615983efab6ecdb5e34b57e99d84077534c6f14c40ab93cfe4e.gz : not found on tape
./var/db/freebsd-update/files/a496259e9f14fd1bebfe15a5470d740c12deb8782927f345fa7f26f6ed05c082.gz : not found on tape
./var/db/freebsd-update/files/3879565b4d0ef009705aed9ee7913b39c60c6b7ef2b8839f0685ad4838ab7e4a.gz : not found on tape
unknown tape header type -1170130095
abort? [yn] n
expected next file 8887705, got 0
expected next file 8887705, got 8887701
unknown tape header type 559903
abort? [yn] n
resync restore, skipped 1 blocks
expected next file 8887705, got 0
./var/db/freebsd-update/files/3f02e886739e2295f35d01542cc167416781952b1097e72bc91bd80d70bb8492.gz : not found on tape
./var/db/freebsd-update/files/723ccbf9249f5ff990873f2c781f0af7b5fdade52a53562fb12d53766ba805dd.gz : not found on tape
./var/db/freebsd-update/files/a29375e8ae5f4a50d709b9889dc567dec2d6bd6d4c94ce08d3400327c3535d04.gz : not found on tape
./var/db/freebsd-update/files/4341ef5fe5f41659c1c2e263982d1af3d84a761a286b5e10700fa16d123a9476.gz : not found on tape
./var/db/freebsd-update/files/191293c4ff7bec3885be67990af01618570bd253ef34eb2c6182bbf934aa03c0.gz : not found on tape
./var/db/freebsd- update/files/3311a10d13637a70ff0c47c20dbdb5aef41785a5fd2d191a258a1e598d09be18.gz: not found on tape
./var/db/freebsd-update/files/ae8354aadc103b0006345df53c5256ac8cf9c7d3e2ba03d75d5de56ff394eb52.gz : not found on tape
expected next file 8887714, got 8887705
expected next file 8887714, got 8887706
expected next file 8887714, got 8887707
expected next file 8887714, got 8887708
expected next file 8887714, got 8887709
unknown tape header type 559903
abort? [yn] n
resync restore, skipped 2 blocks
expected next file 8887714, got 0
./var/db/freebsd-update/files/aaac511eaabd8c62f57daa41279e0b0cca1bf26c44f9f0be15ec2a0349c628a9.gz : not found on tape
unknown tape header type -1808459390
abort? [yn]abort? [yn] y
dump core? [yn] n
 DUMP: Broken pipe
 DUMP: The ENTIRE dump is aborted.
k222# dump 0af - /usr | ( cd /bkup/usr && restore rf - )
 DUMP: WARNING: should use -L when dumping live read-write filesystems!
 DUMP: Date of this level 0 dump: Fri Apr 29 17:23:58 2011
 DUMP: Date of last level 0 dump: the epoch
 DUMP: Dumping /dev/ar0s1f (/usr) to standard output
 DUMP: mapping (Pass I) [regular files]
 DUMP: mapping (Pass II) [directories]
 DUMP: estimated 53043317 tape blocks.
 DUMP: dumping (Pass III) [directories]

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS