diff --git a/backup.sh b/backup.sh index a2e56762..83582e66 100755 --- a/backup.sh +++ b/backup.sh @@ -19,7 +19,11 @@ if [[ $* == *--schedule* ]]; then echo "0 0 * * * /rmm/backup.sh --auto" ) | crontab - - if [ ! -d /rmmbackups/daily ]; then + if [ ! -d /rmmbackups ]; then + sudo mkdir /rmmbackups + fi + + if [ ! -d /rmmbackups/daily ]; then sudo mkdir /rmmbackups/daily fi