|
|
This document is available in: English ChineseGB Deutsch Francais Italiano Turkce |
by Heinz-Josef Claes <hjclaes(at)web.de> 关于作者: 本文作者不想在线发布他本人的任何照片 目录: |
storeBackup --- 一个非传统备份工具摘要:
StoreBackup可供普通用户使用,用户并不一定要有磁带备份,但是在原来基础上还另需一个硬盘驱动器或者是一台电脑。
使用它,用户可以在专业环境下快速,方便的访问文件备份,同时还可以节省在磁带和管理上的费用。
|
tar jxf storeBackup-version.tar.bz2
这条指令会生成storeBackup的目录,在子目录bin下有文档和可运行程序。他们可以通过完整路径来调用。$PATH 环境变量的设置 是可选的。不包含md5sum程序的操作系统(例如FreeBSD)就需要编译md5sum。关于这个的说明可以在相关的README文件中找到。storeBackup.pl -s sourceDir -t targetDir
sourceDir和targetDir必须存在。StoreBackup会把文件从sourceDir拷贝到targetDir/date_time,并且在这个过程中用bzip2对文件 压缩(对.gz,.bz2,.png等等不进行压缩),同时完成与复制文件的连接。storeBackup.pl -h
在文件README和EXAMPLES里,用户可以找到不同应用的详尽说明。有必要指出,除了可以在命令行输入参数 之外,还有更快的方法,那就是使用配置文件。可以通过以下指令产生:storeBackup.pl --generate --file ConfigFile
或者使用更加简短的形式:storeBackup.pl -g -f ConfigFile
检查一下,用下面的命令局部地运行storeBackup.pl -f ConfigFile --print
随后,storeBackup也可能用下面的指令启动:storeBackup.pl -f ConfigFile
关于storeBackup的所有选项的全部说明可以在文件README和EXAMPLES里面找到,这两个文件是tar文件的一部分。storeBackupVersion.pl -f Filename
filename 对应的地方应填写文件名称,形式必须与备份中的一样,也就是说,包括它的压缩属性。最简单的办法就是找到正确位置的备 份路径,运行指令。运行选项"-h" 就可以显示所有11个参数的解释。hjc@schlappix:~/backup ) storeBackupls.pl /media/zip/stbu/ 1 Fri May 23 2003 2003.05.23_12.37.53 -156 2 Fri Jun 06 2003 2003.06.06_14.31.47 -142 3 Fri Jun 13 2003 2003.06.13_14.17.18 -135 4 Fri Jun 20 2003 2003.06.20_14.02.35 -128 5 Fri Jun 27 2003 2003.06.27_14.23.55 -121 6 Mon Jun 30 2003 2003.06.30_17.34.37 -118 7 Fri Jul 04 2003 2003.07.04_13.10.06 -114 8 Fri Jul 11 2003 2003.07.11_13.13.14 -107 9 Fri Jul 18 2003 2003.07.18_14.03.49 -100 10 Fri Jul 25 2003 2003.07.25_14.19.19 -93 11 Thu Jul 31 2003 2003.07.31_17.07.55 -87 12 Fri Aug 01 2003 2003.08.01_12.16.58 -86 13 Fri Aug 15 2003 2003.08.15_15.10.19 -72 14 Sat Aug 23 2003 2003.08.23_06.25.35 -64 15 Wed Aug 27 2003 2003.08.27_18.21.09 -60 16 Thu Aug 28 2003 2003.08.28_14.16.39 -59 17 Fri Aug 29 2003 2003.08.29_14.35.10 -58 18 Mon Sep 01 2003 2003.09.01_17.19.56 -55 19 Tue Sep 02 2003 2003.09.02_18.18.46 -54 20 Wed Sep 03 2003 2003.09.03_16.22.41 -53 21 Thu Sep 04 2003 2003.09.04_16.59.19 -52 22 Fri Sep 05 2003 2003.09.05_14.35.20 -51 23 Mon Sep 08 2003 2003.09.08_20.08.52 -48 24 Tue Sep 09 2003 2003.09.09_18.45.48 -47 25 Wed Sep 10 2003 2003.09.10_18.30.48 -46 26 Thu Sep 11 2003 2003.09.11_17.26.46 -45 27 Fri Sep 12 2003 2003.09.12_15.23.03 -44 28 Mon Sep 15 2003 2003.09.15_18.05.19 -41 29 Tue Sep 16 2003 2003.09.16_18.04.16 -40 30 Wed Sep 17 2003 2003.09.17_19.03.02 -39 31 Thu Sep 18 2003 2003.09.18_18.21.09 -38 32 Fri Sep 19 2003 2003.09.19_14.48.05 -37 not finished 33 Mon Sep 22 2003 2003.09.22_18.58.55 -34 34 Tue Sep 23 2003 2003.09.23_18.48.40 -33 35 Wed Sep 24 2003 2003.09.24_19.32.24 -32 36 Thu Sep 25 2003 2003.09.25_18.05.38 -31 37 Fri Sep 26 2003 2003.09.26_14.59.59 -30 38 Mon Sep 29 2003 2003.09.29_18.42.59 -27 39 Tue Sep 30 2003 2003.09.30_18.02.03 -26 40 Wed Oct 01 2003 2003.10.01_17.09.43 -25 41 Thu Oct 02 2003 2003.10.02_15.26.33 -24 42 Mon Oct 06 2003 2003.10.06_20.08.45 -20 43 Tue Oct 07 2003 2003.10.07_19.46.54 -19 44 Wed Oct 08 2003 2003.10.08_16.03.23 -18 45 Thu Oct 09 2003 2003.10.09_16.58.28 -17 46 Fri Oct 10 2003 2003.10.10_14.21.06 -16 47 Mon Oct 13 2003 2003.10.13_18.58.24 -13 48 Tue Oct 14 2003 2003.10.14_16.02.44 -12 49 Wed Oct 15 2003 2003.10.15_19.04.12 -11 50 Thu Oct 16 2003 2003.10.16_15.47.51 -10 51 Mon Oct 20 2003 2003.10.20_09.34.52 -6 52 Mon Oct 20 2003 2003.10.20_12.16.40 -6 53 Tue Oct 21 2003 2003.10.21_09.43.40 -5 54 Tue Oct 21 2003 2003.10.21_11.22.36 -5 55 Tue Oct 21 2003 2003.10.21_16.01.15 -5 56 Tue Oct 21 2003 2003.10.21_18.08.07 -5 57 Wed Oct 22 2003 2003.10.22_10.02.51 -4 58 Wed Oct 22 2003 2003.10.22_16.09.42 -4 59 Wed Oct 22 2003 2003.10.22_18.03.05 -4 60 Thu Oct 23 2003 2003.10.23_08.18.15 -3 61 Thu Oct 23 2003 2003.10.23_14.16.24 -3 62 Thu Oct 23 2003 2003.10.23_17.00.36 -3 63 Fri Oct 24 2003 2003.10.24_13.29.30 -2 64 Sun Oct 26 2003 2003.10.26_09.08.55 0‘not finished’表示备份被放弃了。
hjc@schlappix:~/backup ) storeBackupls.pl -f stbu.conf /media/zip/stbu/ analyse of old Backups in </media/zip/stbu/>: Fri 2003.05.23_12.37.53 (156): keepLastOfMonth(400d) Fri 2003.06.06_14.31.47 (142): keepLastOfWeek(150d) Fri 2003.06.13_14.17.18 (135): keepLastOfWeek(150d) Fri 2003.06.20_14.02.35 (128): keepLastOfWeek(150d) Fri 2003.06.27_14.23.55 (121): keepLastOfWeek(150d) Mon 2003.06.30_17.34.37 (118): keepLastOfMonth(400d) Fri 2003.07.04_13.10.06 (114): keepLastOfWeek(150d), keepMinNumber50 Fri 2003.07.11_13.13.14 (107): keepLastOfWeek(150d), keepMinNumber49 Fri 2003.07.18_14.03.49 (100): keepLastOfWeek(150d), keepMinNumber48 Fri 2003.07.25_14.19.19 (93): keepLastOfWeek(150d), keepMinNumber47 Thu 2003.07.31_17.07.55 (87): keepLastOfMonth(400d), keepMinNumber46 Fri 2003.08.01_12.16.58 (86): keepLastOfWeek(150d), keepMinNumber45 Fri 2003.08.15_15.10.19 (72): keepLastOfWeek(150d), keepMinNumber44 Sat 2003.08.23_06.25.35 (64): keepLastOfWeek(150d), keepMinNumber43 Wed 2003.08.27_18.21.09 (60): keepMinNumber42, keepWeekDays(60d) Thu 2003.08.28_14.16.39 (59): keepMinNumber41, keepWeekDays(60d) Fri 2003.08.29_14.35.10 (58): keepLastOfMonth(400d), keepLastOfWeek(150d), keepMinNumber40, keepWeekDays(60d) Mon 2003.09.01_17.19.56 (55): keepMinNumber39, keepWeekDays(60d) Tue 2003.09.02_18.18.46 (54): keepMinNumber38, keepWeekDays(60d) Wed 2003.09.03_16.22.41 (53): keepMinNumber37, keepWeekDays(60d) Thu 2003.09.04_16.59.19 (52): keepMinNumber36, keepWeekDays(60d) Fri 2003.09.05_14.35.20 (51): keepLastOfWeek(150d), keepMinNumber35, keepWeekDays(60d) Mon 2003.09.08_20.08.52 (48): keepMinNumber34, keepWeekDays(60d) Tue 2003.09.09_18.45.48 (47): keepMinNumber33, keepWeekDays(60d) Wed 2003.09.10_18.30.48 (46): keepMinNumber32, keepWeekDays(60d) Thu 2003.09.11_17.26.46 (45): keepMinNumber31, keepWeekDays(60d) Fri 2003.09.12_15.23.03 (44): keepLastOfWeek(150d), keepMinNumber30, keepWeekDays(60d) Mon 2003.09.15_18.05.19 (41): keepMinNumber29, keepWeekDays(60d) Tue 2003.09.16_18.04.16 (40): keepMinNumber28, keepWeekDays(60d) Wed 2003.09.17_19.03.02 (39): keepMinNumber27, keepWeekDays(60d) Thu 2003.09.18_18.21.09 (38): keepMinNumber26, keepWeekDays(60d) Fri 2003.09.19_14.48.05 (37): keepLastOfWeek(150d), keepMinNumber25, keepWeekDays(60d) Mon 2003.09.22_18.58.55 (34): keepMinNumber24, keepWeekDays(60d) Tue 2003.09.23_18.48.40 (33): keepMinNumber23, keepWeekDays(60d) Wed 2003.09.24_19.32.24 (32): keepMinNumber22, keepWeekDays(60d) Thu 2003.09.25_18.05.38 (31): keepMinNumber21, keepWeekDays(60d) Fri 2003.09.26_14.59.59 (30): keepLastOfWeek(150d), keepMinNumber20, keepWeekDays(60d) Mon 2003.09.29_18.42.59 (27): keepMinNumber19, keepWeekDays(60d) Tue 2003.09.30_18.02.03 (26): keepLastOfMonth(400d), keepMinNumber18, keepWeekDays(60d) Wed 2003.10.01_17.09.43 (25): keepMinNumber17, keepWeekDays(60d) Thu 2003.10.02_15.26.33 (24): keepLastOfWeek(150d), keepMinNumber16, keepWeekDays(60d) Mon 2003.10.06_20.08.45 (20): keepMinNumber15, keepWeekDays(60d) Tue 2003.10.07_19.46.54 (19): keepMinNumber14, keepWeekDays(60d) Wed 2003.10.08_16.03.23 (18): keepMinNumber13, keepWeekDays(60d) Thu 2003.10.09_16.58.28 (17): keepMinNumber12, keepWeekDays(60d) Fri 2003.10.10_14.21.06 (16): keepLastOfWeek(150d), keepMinNumber11, keepWeekDays(60d) Mon 2003.10.13_18.58.24 (13): keepMinNumber10, keepWeekDays(60d) Tue 2003.10.14_16.02.44 (12): keepMinNumber9, keepWeekDays(60d) Wed 2003.10.15_19.04.12 (11): keepMinNumber8, keepWeekDays(60d) Thu 2003.10.16_15.47.51 (10): keepLastOfWeek(150d), keepMinNumber7, keepWeekDays(60d) Mon 2003.10.20_09.34.52 (6): keepDuplicate(7d) Mon 2003.10.20_12.16.40 (6): keepMinNumber6, keepWeekDays(60d) Tue 2003.10.21_09.43.40 (5): keepDuplicate(7d) Tue 2003.10.21_11.22.36 (5): keepDuplicate(7d) Tue 2003.10.21_16.01.15 (5): keepDuplicate(7d) Tue 2003.10.21_18.08.07 (5): keepMinNumber5, keepWeekDays(60d) Wed 2003.10.22_10.02.51 (4): keepDuplicate(7d) Wed 2003.10.22_16.09.42 (4): keepDuplicate(7d) Wed 2003.10.22_18.03.05 (4): keepMinNumber4, keepWeekDays(60d) Thu 2003.10.23_08.18.15 (3): keepDuplicate(7d) Thu 2003.10.23_14.16.24 (3): keepDuplicate(7d) Thu 2003.10.23_17.00.36 (3): keepMinNumber3, keepWeekDays(60d) Fri 2003.10.24_13.29.30 (2): keepLastOfWeek(150d), keepMinNumber2, keepWeekDays(60d) Sun 2003.10.26_09.08.55 (0): keepLastOfMonth(400d), keepLastOfWeek(150d), keepMinNumber1, keepWeekDays(60d)
|
主页由LinuxFocus编辑组维护
© Heinz-Josef Claes, FDL LinuxFocus.org |
翻译信息:
|
2004-04-28, generated by lfparser version 2.46