我现在开始用bacula进行备份,并有几个问题的最佳做法。
现在的情况:
所以这里是问题:
相关configuration摘录:
导向器:
Pool{ Name = FullSet2 Use Volume Once = yes Pool Type = Backup LabelFormat = "FS2T" AutoPrune = yes VolumeRetention = 350 days Maximum Volumes = 15 Recycle = yes } Pool{ Name = FullSet1 Use Volume Once = yes Pool Type = Backup LabelFormat = "FS1T" AutoPrune = yes VolumeRetention = 350 days Maximum Volumes = 15 Recycle = yes } Pool { Name = DiffSet Use Volume Once = yes Pool Type = Backup LabelFormat = "DS1T" AutoPrune = yes VolumeRetention = 1 day Maximum Volumes = 10 Recycle = yes }
至于2)
当Bacula要我给我贴标签时,我会按需要贴上新的标签。 但是,如果我事先知道,那天我需要10个新磁带,那么我就把它们全部贴上来。 标记新磁带是一件非常简单的事情。
list volumes命令来获得有关磁带的概述。 umount命令umount驱动器中的当前磁带,然后按磁带机上的button物理popup当前磁带。 label命令,select池,然后input您想要的标签或接受Bacula推荐的标签。 至于1)
标签格式=“FS1T $ {NumVols:p / 2/0 / r}”#自动标签
该命令用0填充到2位,并将variables$ {NumVols}(卷的数量)放在最大2位的右侧(r)。