Skip to content

Commit

Permalink
feat: sanoid install on off1, follow-up
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarel authored and root committed Jan 31, 2024
1 parent 0912fd1 commit 7275ad2
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 5 deletions.
74 changes: 70 additions & 4 deletions confs/off1/sanoid/sanoid.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

# backup of PVE containers data
[zfs-hdd/pve]
use_template=prod_pve
use_template=local_sys
recursive=yes

# backup of host
[rpool]
use_template=local_sys
recursive=yes

# backup of host
Expand All @@ -12,11 +17,52 @@

# MongoDB data
[zfs-nvme/pve/subvol-102-disk-0]
use_template=prod_data
use_template=local_data
recursive=no

# synced data from off2
[zfs-hdd/off]
use_template=synced_data
recursive=yes

[zfs-hdd/off-nvme]
use_template=synced_data
recursive=yes

[zfs-hdd/off-pro]
use_template=synced_data
recursive=yes

[zfs-hdd/off-pro-nvme]
use_template=synced_data
recursive=yes

[zfs-hdd/obf]
use_template=synced_data
recursive=yes

[zfs-hdd/opf]
use_template=synced_data
recursive=yes

[zfs-hdd/opff]
use_template=synced_data
recursive=yes

[zfs-hdd/backups/off2-pve]
use_template=synced_sys
recursive=yes

[zfs-hdd/backups/off2-pve-nvme]
use_template=synced_sys
recursive=yes

[zfs-hdd/backups/off2-rpool]
use_template=synced_sys
recursive=yes

# Template for production data volume
[template_prod_data]
[template_local_data]
# How often snapshots should be taken under an hour
frequent_period=30
# What to keep
Expand All @@ -37,7 +83,7 @@


# Template for production containers volumes handled by Proxmox
[template_prod_pve]
[template_local_sys]
# How often snapshots should be taken under an hour
frequent_period=60
# What to keep
Expand Down Expand Up @@ -77,3 +123,23 @@
# Should old snapshots be pruned
autoprune = yes

# Template for production containers volumes backups
[template_synced_sys]
# How often snapshots should be taken under an hour
frequent_period=60
# What to keep
# number of sub-hourly snapshots
frequently = 0
# number of hourly snapshots
hourly = 10
# number of daily snashots
daily = 10
# number of monthly snashots
monthly = 6
# number of yearly snashots
yearly = 0
# whether snapshots should be taken automatically
autosnap = no
# Should old snapshots be pruned
autoprune = yes

6 changes: 5 additions & 1 deletion confs/off1/sanoid/syncoid-args.conf
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# pulling from off2
# off
--no-sync-snap --no-privilege-elevation --recursive [email protected]:zfs-hdd/off zfs-hdd/off
--no-sync-snap --no-privilege-elevation --recursive [email protected]:zfs-nvme/off zfs-hdd/off-nvme
# off-pro
--no-sync-snap --no-privilege-elevation --recursive [email protected]:zfs-hdd/off-pro zfs-hdd/off-pro
--no-sync-snap --no-privilege-elevation --recursive [email protected]:zfs-nvme/off-pro zfs-hdd/off-pro-nvme
# obf
--no-sync-snap --no-privilege-elevation --recursive [email protected]:zfs-hdd/obf zfs-hdd/obf
# opf
--no-sync-snap --no-privilege-elevation --recursive [email protected]:zfs-hdd/opf zfs-hdd/obf
# opff
--no-sync-snap --no-privilege-elevation --recursive [email protected]:zfs-hdd/opff zfs-hdd/opff
<<<<<<< HEAD
# off2 rpool backups
--no-sync-snap --no-privilege-elevation --recursive [email protected]:zfs-hdd/pve zfs-hdd/backups/off2-pve
# off2 pve backups
--no-sync-snap --no-privilege-elevation --recursive [email protected]:rpool zfs-hdd/backups/off2-rpool
--no-sync-snap --no-privilege-elevation --recursive [email protected]:zfs-hdd/pve zfs-hdd/backups/off2-pve
--no-sync-snap --no-privilege-elevation --recursive [email protected]:zfs-nvme/pve zfs-hdd/backups/off2-pve-nvme

0 comments on commit 7275ad2

Please sign in to comment.