Update backup.sh
This commit is contained in:
parent
0f147a5518
commit
36a2e9d931
|
@ -19,7 +19,11 @@ if [[ $* == *--schedule* ]]; then
|
||||||
echo "0 0 * * * /rmm/backup.sh --auto"
|
echo "0 0 * * * /rmm/backup.sh --auto"
|
||||||
) | crontab -
|
) | crontab -
|
||||||
|
|
||||||
if [ ! -d /rmmbackups/daily ]; then
|
if [ ! -d /rmmbackups ]; then
|
||||||
|
sudo mkdir /rmmbackups
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d /rmmbackups/daily ]; then
|
||||||
sudo mkdir /rmmbackups/daily
|
sudo mkdir /rmmbackups/daily
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue