[IMP]RsyncVolumes : optional hourly rsync
This commit is contained in:
parent
570c5e7f9e
commit
d602b11979
@ -2,4 +2,8 @@
|
||||
|
||||
printenv >> /etc/environment
|
||||
envsubst < /opt/backup/rsync.template > /opt/backup/rsync.sh
|
||||
if [ "$NO_RSYNC" == 1 ]; then
|
||||
sed -i '/rsync.sh/d' ./crontab
|
||||
rm /opt/backup/rsync.*
|
||||
fi
|
||||
crontab ./crontab && touch /var/log/cron.log && crond && tail -f /var/log/cron.log
|
||||
|
@ -2,4 +2,8 @@
|
||||
|
||||
printenv >> /etc/environment
|
||||
envsubst < /opt/backup/rsync.template > /opt/backup/rsync.sh
|
||||
if [ "$NO_RSYNC" == 1 ]; then
|
||||
sed -i '/rsync.sh/d' ./crontab
|
||||
rm /opt/backup/rsync.*
|
||||
fi
|
||||
crontab ./crontab && touch /var/log/cron.log && cron && tail -f /var/log/cron.log
|
||||
|
Loading…
Reference in New Issue
Block a user