2
0
mirror of https://github.com/deajan/osync synced 2024-11-05 12:01:02 +00:00
osync/sync.conf

70 lines
2.0 KiB
Plaintext
Raw Normal View History

2013-07-15 22:10:23 +00:00
#!/bin/bash
###### Osync - Rsync based two way sync engine with fault tolerance
2013-07-16 11:55:15 +00:00
###### (L) 2013 by Orsiris "Ozy" de Jong (www.netpower.fr)
2013-07-21 19:40:55 +00:00
#### Config file rev 2107201302
2013-07-15 22:10:23 +00:00
## Sync job identification, any string you want
SYNC_ID="sync_test"
## Directories to synchronize
2013-07-18 11:39:52 +00:00
MASTER_SYNC_DIR="/home/git/osync/test/dir1"
SLAVE_SYNC_DIR="/home/git/osync/test/dir2"
2013-07-15 22:10:23 +00:00
2013-07-21 19:40:55 +00:00
## Create directories if they do not exist
CREATE_DIRS=yes
2013-07-19 16:15:25 +00:00
## List of directories to exclude in sync on both sides (rsync patterns, wildcards work). Must be relative paths. List is separated by PATH SEPARATOR CHAR defined below (semicolon by default).
RSYNC_EXCLUDE_PATTERN="nosyncdir;otherdir"
## You might change this separator case in the unholy case that your filename may contain semicolons. Change it then to whatever unholy char you want.
PATH_SEPARATOR_CHAR=";"
2013-07-15 22:10:23 +00:00
## Generate an alert if master or slave have lass space than given value in KB.
MINIMUM_SPACE=1048576
## If enabled, synchronization will be processed with sudo command. See documentation
SUDO_EXEC=yes
## Paranoia option. Don't change this unless you read the documentation and still feel concerned about security issues.
RSYNC_EXECUTABLE=rsync
##Remote options (will sync slave through ssh tunnel, needs RSA key. See documentation for remote sync.
REMOTE_SYNC=no
SSH_RSA_PRIVATE_KEY=~/.ssh/id_rsa
REMOTE_USER=backupmaster
REMOTE_HOST=badministrateur.com
REMOTE_PORT=48884
2013-07-15 22:10:23 +00:00
SSH_COMPRESSION=yes
REMOTE_HOST_PING=no
2013-07-15 22:10:23 +00:00
REMOTE_3RD_PARTY_HOST="www.kernel.org"
PRESERVE_ACL=yes
PRESERVE_XATTR=yes
RSYNC_COMPRESS=yes
SOFT_MAX_EXEC_TIME=30000
2013-07-21 19:40:55 +00:00
HARD_MAX_EXEC_TIME=36000
2013-07-15 22:10:23 +00:00
2013-07-16 11:55:15 +00:00
CONFLICT_PREVALANCE=master
CONFLICT_BACKUP=yes
CONFLICT_BACKUP_DAYS=30
# This can be very space consuming
CONFLICT_BACKUP_MULTIPLE=yes
2013-07-15 22:10:23 +00:00
SOFT_DELETE=yes
SOFT_DELETE_DAYS=30
2013-07-21 19:40:55 +00:00
RESUME_SYNC=no
RESUME_TRY=2
2013-07-21 19:40:55 +00:00
FORCE_STRANGER_LOCK_RESUME=yes
2013-07-15 22:10:23 +00:00
DESTINATION_MAILS="ozy@badministrateur.com"
LOCAL_RUN_BEFORE_CMD=""
LOCAL_RUN_AFTER_CMD=""
REMOTE_RUN_BEFORE_CMD="du /var/log"
REMOTE_RUN_AFTER_CMD="du /tmp"
2013-07-15 22:10:23 +00:00
MAX_EXEC_TIME_PER_CMD_BEFORE=0
MAX_EXEC_TIME_PER_CMD_AFTER=0