Update backup.sh

This commit is contained in:
dinger1986 2023-05-11 19:58:29 +01:00 committed by GitHub
parent 0f147a5518
commit 36a2e9d931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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