Version 2.0.1: Configuration Sanoid optimisée pour snapshots fréquents
Changements: - Snapshots toutes les 15 minutes (conservés 12 heures) - Snapshots horaires: 48 (conservés 2 jours) - Snapshots quotidiens: 7 (conservés 1 semaine) - Snapshots mensuels/annuels désactivés Configuration Sanoid: - frequently = 48 (15 min × 48 = 12h) - frequent_period = 15 minutes - hourly = 48 (2 jours) - daily = 7 (1 semaine) - monthly = 0 - yearly = 0
This commit is contained in:
parent
ceeb68ddc5
commit
ef3b777800
1 changed files with 7 additions and 5 deletions
|
|
@ -14,13 +14,13 @@
|
||||||
# - Fichiers d'état séparés par pool
|
# - Fichiers d'état séparés par pool
|
||||||
#
|
#
|
||||||
# Auteur : BENE Maël
|
# Auteur : BENE Maël
|
||||||
# Version : 2.0.0
|
# Version : 2.0.1
|
||||||
#
|
#
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
SCRIPT_VERSION="2.0.0"
|
SCRIPT_VERSION="2.0.1"
|
||||||
REPO_URL="https://forgejo.tellserv.fr/Tellsanguis/zfs-sync-nfs-ha"
|
REPO_URL="https://forgejo.tellserv.fr/Tellsanguis/zfs-sync-nfs-ha"
|
||||||
SCRIPT_URL="${REPO_URL}/raw/branch/main/zfs-nfs-replica.sh"
|
SCRIPT_URL="${REPO_URL}/raw/branch/main/zfs-nfs-replica.sh"
|
||||||
SCRIPT_PATH="${BASH_SOURCE[0]}"
|
SCRIPT_PATH="${BASH_SOURCE[0]}"
|
||||||
|
|
@ -254,10 +254,12 @@ EOF
|
||||||
# Ajouter le template
|
# Ajouter le template
|
||||||
cat >> /etc/sanoid/sanoid.conf <<EOF
|
cat >> /etc/sanoid/sanoid.conf <<EOF
|
||||||
[template_production]
|
[template_production]
|
||||||
hourly = 24
|
frequently = 48
|
||||||
|
frequent_period = 15
|
||||||
|
hourly = 48
|
||||||
daily = 7
|
daily = 7
|
||||||
monthly = 3
|
monthly = 0
|
||||||
yearly = 1
|
yearly = 0
|
||||||
autosnap = ${autosnap_value}
|
autosnap = ${autosnap_value}
|
||||||
autoprune = yes
|
autoprune = yes
|
||||||
EOF
|
EOF
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue