Compare commits
2 commits
multipool_
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| ef3b777800 | |||
| ceeb68ddc5 |
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