From 50d2642aa4b2b0fea3570e9617b7e871eb464c98 Mon Sep 17 00:00:00 2001 From: peet Date: Wed, 6 Jan 2021 22:33:41 +0100 Subject: [PATCH] Added default and network --- system-backup | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/system-backup b/system-backup index c65a13d..1a72fca 100644 --- a/system-backup +++ b/system-backup @@ -1,5 +1,10 @@ #!/bin/bash +backup_dir="/mnt/USB/Backup/"$(date +'%Y/%m/%d') + +cd /var/www/nextcloud +sudo -u www-data php occ maintenance:mode --on + if [ "$1" = "-h" ] then echo "system-backup