aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostclass/postgresql_server
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/hostclass/postgresql_server')
-rw-r--r--scripts/hostclass/postgresql_server5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/hostclass/postgresql_server b/scripts/hostclass/postgresql_server
index 10bafc8..dbb84b4 100644
--- a/scripts/hostclass/postgresql_server
+++ b/scripts/hostclass/postgresql_server
@@ -28,6 +28,11 @@ create_dataset \
-o primarycache=metadata \
-o atime=off \
"${state_dataset}/postgres"
+zfs set \
+ com.sun:auto-snapshot:daily=true \
+ com.sun:auto-snapshot:weekly=true \
+ com.sun:auto-snapshot:monthly=true \
+ "${state_dataset}/postgres"
install_directory -m 0755 -o "$postgres_user" -g "$postgres_user" "$postgres_home"
# Initialize the database.