Skip to content

backups: implements a zfs snapshot backup

It only concerns the creation of local snapshots. The sync to another server will come in another diff

The zfs configuration need to be updated to add a dedicated dataset for the postgresql wals

Related to T3889

Test Plan

dali:

diff origin/production/dali.internal.admin.swh.network current/dali.internal.admin.swh.network
*******************************************
+ File[/etc/sanoid/sanoid.conf] =>
   parameters =>
     "content": "# File managed with puppet (module profile::sanoid::backup)\n# A...
     "ensure": "present",
     "group": "root",
     "mode": "0644",
     "owner": "root"
*******************************************
+ File[/etc/sanoid] =>
   parameters =>
     "ensure": "directory",
     "group": "root",
     "mode": "0755",
     "owner": "root"
*******************************************
+ File[/usr/local/bin/start_pg_backup.sh] =>
   parameters =>
     "content": "#!/bin/bash\n#\n# File managed by puppet. All modifications will...
     "ensure": "present",
     "group": "root",
     "mode": "0744",
     "owner": "root"
*******************************************
+ File[/usr/local/bin/stop_pg_backup.sh] =>
   parameters =>
     "content": "#!/bin/bash\n#\n# File managed by puppet. All modifications will...
     "ensure": "present",
     "group": "root",
     "mode": "0744",
     "owner": "root"
*******************************************
+ Package[sanoid] =>
   parameters =>
     "ensure": "installed"
*******************************************
*** End octocatalog-diff on dali.internal.admin.swh.network

Migrated from D7118 (view on Phabricator)

Merge request reports