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

add excluded pattern file, add global lock, refs #20367

parent 8204955e
No related branches found
No related tags found
No related merge requests found
......@@ -8,12 +8,13 @@ import os
def setup(interactive=True):
CROND_TEMPLATE = '''# https://github.com/laurent22/rsync-time-backup
0 22 * * * root /usr/local/sbin/rsync_tmbackup.sh /etc root@{backup_server}:/backup/{hostname}/etc
0 22 * * * root /usr/local/sbin/rsync_tmbackup.sh /home root@{backup_server}:/backup/{hostname}/home
'''
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'''
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/',
]
......
- .zfs/
- *.log
- *.pyc
- *.swp
- *.pid
- *chunked_*/
- __pycache__/
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