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