Skip to content
Snippets Groups Projects
Commit 489d8fab authored by Florent Thiery's avatar Florent Thiery
Browse files

fix crontab naming, refs #20367

parent a841eda2
No related branches found
No related tags found
No related merge requests found
......@@ -11,11 +11,12 @@ def setup(interactive=True):
0 22 * * * root /usr/local/sbin/rsync_tmbackup.sh /etc root@{backup_server}:/backup/{hostname}/etc /etc/backup/excluded_patterns.txt
0 22 * * * root flock -n /etc/backup/home_backup.lock /usr/local/sbin/rsync_tmbackup.sh /home root@{backup_server}:/backup/{hostname}/home /etc/backup/excluded_patterns.txt'''
# crontab files can only contain lowercase and dashes, no _ or .
cmds = [
'cp rsync_tmbackup.sh /usr/local/sbin',
'mkdir -p /etc/backup',
'cp excluded_patterns.txt /etc/backup',
'cp /tmp/backup.cron /etc/cron.d/',
'cp /tmp/backup.cron /etc/cron.d/backup',
]
server = utils.get_conf('BACKUP_SERVER', '')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment