Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@hanssonit.se>2018-11-24 16:30:16 +0300
committerGitHub <noreply@github.com>2018-11-24 16:30:16 +0300
commit1ed913814415608660d380323d72858302236509 (patch)
tree41e73d69972bec8e27704815a8f354bf3ab0acf8 /nextcloud_update.sh
parentae79af5e307908ca70e212d99871d7a6da6eb8df (diff)
Introduce ZFS Snapshots (#718)
Diffstat (limited to 'nextcloud_update.sh')
-rw-r--r--nextcloud_update.sh10
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