AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-819016

123's questions

Martin Hope
123
Asked: 2021-09-04 12:39:38 +0800 CST

Bacula - 磁盘备份 GFS 方案“洞”

  • 0

我有一个关于在硬盘驱动器上使用 bacula 实现 GFS 方案的问题(守护进程已经正常工作)。

我想要完成的事情:

每半年我想要一个至少可以访问 12 个月的完整备份 - > 我需要将备份保持在 12 个月左右,这样第二个完整备份不会覆盖第一个备份。这意味着至少会有 3 个完整备份(我选择了 18 个月)。这种情况持续了几天、几个月等等。简单的 GFS 方案。

Schedule{
  Name = "GGFSCycle"
  Enabled = yes

  # DailyCycle - the volume is kept for 14 days
  Run = Level=Incremental Pool=DailyPool FullPool=HalfAnnualPool Priority=10 tuesday-sunday at 03:00

  # WeeklyCycle - the volume is kept for 5 weeks
  Run = Level=Incremental Pool=WeeklyPool FullPool=HalfAnnualPool Priority=11 monday at 03:00
  
  # MonthlyCycle - the volume is kept for 7 months
  Run = Level=Differential Pool=MonthlyPool FullPool=HalfAnnualPool Priority=12 february-june 1 at 03:00
  Run = Level=Differential Pool=MonthlyPool FullPool=HalfAnnualPool Priority=12 august-december 1 at 03:00

  # HalfAnnualCycle - the data is kept for 18 months
  Run = Level=Full Pool=HalfAnnualPool Priority=13 january 1 at 03:00
  Run = Level=Full Pool=HalfAnnualPool Priority=13 july 1 at 03:00

}

Pool {    
  Name = DailyPool
  Pool Type = Backup
  Storage = backup-server-sd
  Label Format = "DailyVol_"
  Volume Use Duration = 23 hours
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 14 days         
  Maximum Volume Bytes = 50M          # Limit Volume size to something reasonable
  Maximum Volumes = 1000              # Limit number of Volumes in Pool
  # -> max 50G
}

Pool {
  Name = WeeklyPool
  Pool Type = Backup
  Storage = backup-server-sd
  Label Format = "WeeklyVol_"
  Volume Use Duration = 23 hours
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 5 weeks
  Maximum Volume Bytes = 500M 
  Maximum Volumes = 80
  # -> max 70G
}

Pool {
  Name = MonthlyPool
  Pool Type = Backup
  Storage = backup-server-sd
  Label Format = "MonthlyVol_"
  Volume Use Duration = 2 days
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 7 months
  Maximum Volume Bytes = 5G
  Maximum Volumes = 80
  # -> max 170G
}
 
Pool {
  Name = HalfAnnualPool
  Pool Type = Backup
  Label Format = "HalfannualVol_"
  Storage = backup-server-sd
  Volume Use Duration = 3 days
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 18 months #1,5 years
  Maximum Volume Bytes = 35G
  Maximum Volumes = 20
  # -> max 700G
}

我看到的问题:

是增量备份始终引用最后的增量备份、差异备份或完整备份,并且仅保存此后更改的文件。在我的计划中,我有两个“不同”的增量备份,每天和每周一个。每周的总是引用前一天的每日,对吧?当我将每周的文件保留超过 4 周(我选择了 5 周)并且每天的文件仅保留超过 10 天(我选择了 14 天)时,每日文件将在 14 天后被删除,但每月的文件仍然引用它们. 那么会有“坑”吗?

我想,如果有可能有多个“级别”的增量备份,就像我可以说每周增量备份只引用每周备份(level0)和每日增量备份只引用每日备份(level1 ) 问题就会消失。当我将完整备份保留为短时,也会发生同样的问题。例如,如果完整备份覆盖了唯一现有的备份,则将没有完整备份可供差异备份参考,并且我丢失了之前所做的所有备份。

我发现了什么:

我浏览了互联网并在 bacula-documentation 中找到了一个章节:它指出:“现在,由于这些不同类型的保存中的每一种都需要在不同的时期内保持有效,因此最简单的方法(可能也是唯一的方法)是每种备份类型都有一个单独的池。”。

我的问题:

  1. 这基本上意味着除了 bacula-documentation 章节中的单个完整、差异和墨水池之外没有其他解决方案。这个对吗?
  2. 如果不正确,我如何使用两个不同的增量池来实现我的目标?

我还阅读了 bacula-documentation 中的基本工作,这不是正确的事情,但它朝着正确的方向发展。

非常感谢您抽出宝贵时间帮助阅读。

Ps:我不是英语母语者,如果我犯了错误,我很抱歉。如果有什么事情让你很生气,我想听听你的意见,以提高我的英语水平。

谢谢你。

backup hard-drive bacula gfs
  • 1 个回答
  • 84 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve