#!/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