remote backup cron script
This commit is contained in:
parent
986eaa0d7a
commit
2894296caf
|
@ -2954,7 +2954,11 @@ function backup_to_friends_servers {
|
|||
|
||||
# update crontab
|
||||
echo '#!/bin/bash' > /etc/cron.daily/backuptofriends
|
||||
echo "/usr/bin/${PROJECT_NAME}-backup-remote" >> /etc/cron.daily/backuptofriends
|
||||
echo "if [ -f /usr/local/bin/${PROJECT_NAME}-backup-remote ]; then" >> /etc/cron.daily/backuptofriends
|
||||
echo " /usr/local/bin/${PROJECT_NAME}-backup-remote" >> /etc/cron.daily/backuptofriends
|
||||
echo 'else' >> /etc/cron.daily/backuptofriends
|
||||
echo " /usr/bin/${PROJECT_NAME}-backup-remote" >> /etc/cron.daily/backuptofriends
|
||||
echo 'fi' >> /etc/cron.daily/backuptofriends
|
||||
chmod +x /etc/cron.daily/backuptofriends
|
||||
|
||||
echo 'backup_to_friends_servers' >> $COMPLETION_FILE
|
||||
|
|
Loading…
Reference in New Issue