From 89c3e20e8c739ca85a1b8f689631fa47811237b9 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Tue, 4 Jun 2024 16:50:50 -0400 Subject: [PATCH] Update snapborg backup paths and retention policy --- README.org | 44 +++++++++---------- .../snapborg/home_fileserver_config.yaml | 12 ++--- .../.config/snapborg/home_hdd_config.yaml | 12 ++--- .../snapborg/root_fileserver_config.yaml | 10 ++--- .../.config/snapborg/root_hdd_config.yaml | 10 ++--- 5 files changed, 44 insertions(+), 44 deletions(-) diff --git a/README.org b/README.org index 29da11f..f240584 100644 --- a/README.org +++ b/README.org @@ -7799,7 +7799,7 @@ configs: # MANDATORY: name of the snapper config - name: root # MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame - repo: /run/media/sravan/5TB_HDD/Backups/oryp7/root + repo: /run/media/sravan/5TB_HDD/Backups/oryp7-gentoo/root # if this is set to true, borg does not neccessarily fail when a backup fails fault_tolerant_mode: true # snapborg fails when the most recent snapshot transferred successfully is @@ -7815,10 +7815,10 @@ configs: # compression configuration, see borg manual compression: auto,zstd,4 retention: - keep_last: 1 - keep_hourly: 1 - keep_daily: 1 - keep_weekly: 1 + keep_last: 15 + keep_hourly: 0 + keep_daily: 7 + keep_weekly: 4 keep_monthly: 1 keep_yearly: 1 # exclude patterns (see borg help patterns) @@ -7839,7 +7839,7 @@ sudo snapborg --cfg /home/sravan/.config/snapborg/home_hdd_config.yaml backup configs: - name: home # MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame - repo: /run/media/sravan/5TB_HDD/Backups/oryp7/home + repo: /run/media/sravan/5TB_HDD/Backups/oryp7-gentoo/home # if this is set to true, borg does not neccessarily fail when a backup fails fault_tolerant_mode: true # snapborg fails when the most recent snapshot transferred successfully is @@ -7857,12 +7857,12 @@ configs: # define retention settings for borg independently from snapper retention: - keep_last: 1 + keep_last: 15 keep_hourly: 0 - keep_daily: 0 - keep_weekly: 0 - keep_monthly: 0 - keep_yearly: 0 + keep_daily: 7 + keep_weekly: 4 + keep_monthly: 1 + keep_yearly: 1 # exclude patterns (see borg help patterns) exclude_patterns: [] #+END_SRC @@ -7884,7 +7884,7 @@ configs: # MANDATORY: name of the snapper config - name: root # MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame - repo: /mnt/fileserver/Backups/oryp7/root + repo: /mnt/fileserver/Backups/oryp7-gentoo/root # if this is set to true, borg does not neccessarily fail when a backup fails fault_tolerant_mode: true # snapborg fails when the most recent snapshot transferred successfully is @@ -7902,10 +7902,10 @@ configs: # define retention settings for borg independently from snapper retention: - keep_last: 1 - keep_hourly: 1 - keep_daily: 1 - keep_weekly: 1 + keep_last: 15 + keep_hourly: 0 + keep_daily: 7 + keep_weekly: 4 keep_monthly: 1 keep_yearly: 1 # exclude patterns (see borg help patterns) @@ -7926,7 +7926,7 @@ sudo snapborg --cfg /home/sravan/.config/snapborg/home_fileserver_config.yaml ba configs: - name: home # MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame - repo: /mnt/fileserver/Backups/oryp7/home + repo: /mnt/fileserver/Backups/oryp7-gentoo/home # if this is set to true, borg does not neccessarily fail when a backup fails fault_tolerant_mode: true # snapborg fails when the most recent snapshot transferred successfully is @@ -7944,12 +7944,12 @@ configs: # define retention settings for borg independently from snapper retention: - keep_last: 1 + keep_last: 15 keep_hourly: 0 - keep_daily: 0 - keep_weekly: 0 - keep_monthly: 0 - keep_yearly: 0 + keep_daily: 7 + keep_weekly: 4 + keep_monthly: 1 + keep_yearly: 1 # exclude patterns (see borg help patterns) exclude_patterns: [] #+END_SRC diff --git a/snapborg/.config/snapborg/home_fileserver_config.yaml b/snapborg/.config/snapborg/home_fileserver_config.yaml index 21f4ec6..307875f 100644 --- a/snapborg/.config/snapborg/home_fileserver_config.yaml +++ b/snapborg/.config/snapborg/home_fileserver_config.yaml @@ -1,7 +1,7 @@ configs: - name: home # MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame - repo: /mnt/fileserver/Backups/oryp7/home + repo: /mnt/fileserver/Backups/oryp7-gentoo/home # if this is set to true, borg does not neccessarily fail when a backup fails fault_tolerant_mode: true # snapborg fails when the most recent snapshot transferred successfully is @@ -19,11 +19,11 @@ configs: # define retention settings for borg independently from snapper retention: - keep_last: 1 + keep_last: 15 keep_hourly: 0 - keep_daily: 0 - keep_weekly: 0 - keep_monthly: 0 - keep_yearly: 0 + keep_daily: 7 + keep_weekly: 4 + keep_monthly: 1 + keep_yearly: 1 # exclude patterns (see borg help patterns) exclude_patterns: [] diff --git a/snapborg/.config/snapborg/home_hdd_config.yaml b/snapborg/.config/snapborg/home_hdd_config.yaml index 01fcd15..8f974cb 100644 --- a/snapborg/.config/snapborg/home_hdd_config.yaml +++ b/snapborg/.config/snapborg/home_hdd_config.yaml @@ -1,7 +1,7 @@ configs: - name: home # MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame - repo: /run/media/sravan/5TB_HDD/Backups/oryp7/home + repo: /run/media/sravan/5TB_HDD/Backups/oryp7-gentoo/home # if this is set to true, borg does not neccessarily fail when a backup fails fault_tolerant_mode: true # snapborg fails when the most recent snapshot transferred successfully is @@ -19,11 +19,11 @@ configs: # define retention settings for borg independently from snapper retention: - keep_last: 1 + keep_last: 15 keep_hourly: 0 - keep_daily: 0 - keep_weekly: 0 - keep_monthly: 0 - keep_yearly: 0 + keep_daily: 7 + keep_weekly: 4 + keep_monthly: 1 + keep_yearly: 1 # exclude patterns (see borg help patterns) exclude_patterns: [] diff --git a/snapborg/.config/snapborg/root_fileserver_config.yaml b/snapborg/.config/snapborg/root_fileserver_config.yaml index 53b1f2f..91c3c20 100644 --- a/snapborg/.config/snapborg/root_fileserver_config.yaml +++ b/snapborg/.config/snapborg/root_fileserver_config.yaml @@ -2,7 +2,7 @@ configs: # MANDATORY: name of the snapper config - name: root # MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame - repo: /mnt/fileserver/Backups/oryp7/root + repo: /mnt/fileserver/Backups/oryp7-gentoo/root # if this is set to true, borg does not neccessarily fail when a backup fails fault_tolerant_mode: true # snapborg fails when the most recent snapshot transferred successfully is @@ -20,10 +20,10 @@ configs: # define retention settings for borg independently from snapper retention: - keep_last: 1 - keep_hourly: 1 - keep_daily: 1 - keep_weekly: 1 + keep_last: 15 + keep_hourly: 0 + keep_daily: 7 + keep_weekly: 4 keep_monthly: 1 keep_yearly: 1 # exclude patterns (see borg help patterns) diff --git a/snapborg/.config/snapborg/root_hdd_config.yaml b/snapborg/.config/snapborg/root_hdd_config.yaml index c915bbb..6e3515a 100644 --- a/snapborg/.config/snapborg/root_hdd_config.yaml +++ b/snapborg/.config/snapborg/root_hdd_config.yaml @@ -2,7 +2,7 @@ configs: # MANDATORY: name of the snapper config - name: root # MANDATORY: borg repo target, e. g. backupuser@backuphost:reponame - repo: /run/media/sravan/5TB_HDD/Backups/oryp7/root + repo: /run/media/sravan/5TB_HDD/Backups/oryp7-gentoo/root # if this is set to true, borg does not neccessarily fail when a backup fails fault_tolerant_mode: true # snapborg fails when the most recent snapshot transferred successfully is @@ -18,10 +18,10 @@ configs: # compression configuration, see borg manual compression: auto,zstd,4 retention: - keep_last: 1 - keep_hourly: 1 - keep_daily: 1 - keep_weekly: 1 + keep_last: 15 + keep_hourly: 0 + keep_daily: 7 + keep_weekly: 4 keep_monthly: 1 keep_yearly: 1 # exclude patterns (see borg help patterns)