From 36a2e9d931f018a189c9be1872ed9c17d5b87bbe Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Thu, 11 May 2023 19:58:29 +0100 Subject: [PATCH] Update backup.sh --- backup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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