diff options
author | Daniel Hansson <github@hanssonit.se> | 2018-11-24 16:30:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-24 16:30:16 +0300 |
commit | 1ed913814415608660d380323d72858302236509 (patch) | |
tree | 41e73d69972bec8e27704815a8f354bf3ab0acf8 /nextcloud_update.sh | |
parent | ae79af5e307908ca70e212d99871d7a6da6eb8df (diff) |
Introduce ZFS Snapshots (#718)
Diffstat (limited to 'nextcloud_update.sh')
-rw-r--r-- | nextcloud_update.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nextcloud_update.sh b/nextcloud_update.sh index d07afd85..a44ce683 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -266,6 +266,16 @@ then mkdir -p $BACKUP fi +# Do a backup of the ZFS mount +if dpkg -l | grep libzfs2linux +then + if grep -r ncdata /etc/mtab + then + install_if_not zfs-auto-snapshot + check_command zfs-auto-snapshot -r ncdata + fi +fi + # Backup data for folders in config themes apps do |