File tree 2 files changed +25
-2
lines changed
2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,16 @@ then
266
266
mkdir -p $BACKUP
267
267
fi
268
268
269
+ # Do a backup of the ZFS mount
270
+ if dpkg -l | grep libzfs2linux
271
+ then
272
+ if grep -r ncdata /etc/mtab
273
+ then
274
+ install_if_not zfs-auto-snapshot
275
+ check_command zfs-auto-snapshot -r ncdata
276
+ fi
277
+ fi
278
+
269
279
# Backup data
270
280
for folders in config themes apps
271
281
do
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ msg_box "/dev/$DEVTYPE is mounted and need to be unmounted before you can run th
94
94
exit 1
95
95
fi
96
96
97
- # Universal:
97
+ # Universal:
98
98
if isMounted " /mnt/ncdata" ;
99
99
then
100
100
msg_box " /mnt/ncdata is mounted and need to be unmounted before you can run this script."
148
148
}
149
149
format
150
150
151
+ # Do a backup of the ZFS mount
152
+ if dpkg -l | grep libzfs2linux
153
+ then
154
+ if grep -r $LABEL_ /etc/mtab
155
+ then
156
+ install_if_not zfs-auto-snapshot
157
+ fi
158
+ fi
159
+
151
160
# Success!
152
161
if grep " $LABEL_ " /etc/mtab
153
162
then
@@ -156,9 +165,13 @@ msg_box "$MOUNT_ mounted successfully as a ZFS volume.
156
165
Automatic scrubbing is done monthly via a cronjob that you can find here:
157
166
/etc/cron.d/zfsutils-linux
158
167
168
+ Automatic snapshots are taken with 'zfs-auto-snapshot'. You can list current snapshots with:
169
+ 'sudo zfs list -t snapshot'.
170
+ Manpage is here:
171
+ http://manpages.ubuntu.com/manpages/bionic/man8/zfs-auto-snapshot.8.html
172
+
159
173
CURRENT STATUS:
160
174
$( zpool status $LABEL_ )
161
175
162
176
$( zpool list) "
163
177
fi
164
-
You can’t perform that action at this time.
0 commit comments