diff options
Diffstat (limited to 'bin/ncp/BACKUPS/nc-restore-snapshot.sh')
-rw-r--r-- | bin/ncp/BACKUPS/nc-restore-snapshot.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ncp/BACKUPS/nc-restore-snapshot.sh b/bin/ncp/BACKUPS/nc-restore-snapshot.sh index efb753e8..e10bc148 100644 --- a/bin/ncp/BACKUPS/nc-restore-snapshot.sh +++ b/bin/ncp/BACKUPS/nc-restore-snapshot.sh @@ -36,10 +36,10 @@ configure() btrfs-snp $mountpoint autobackup 0 0 ../ncp-snapshots || return 1 - ncc maintenance:mode --on + save_maintenance_mode btrfs subvolume delete "$datadir" || return 1 btrfs subvolume snapshot "$SNAPSHOT" "$datadir" - ncc maintenance:mode --off + restore_maintenance_mode ncp-scan echo "snapshot $SNAPSHOT restored" |