19 lines
714 B
Bash
19 lines
714 B
Bash
# Remote rsync source. Example: backup@example.com:/srv/data/project/
|
|
RSYNC_SOURCE="user@example.com:/path/to/source/"
|
|
|
|
# Local target directory for rsync; this directory is also used as git repository
|
|
# Must be outside the main project repository
|
|
RSYNC_TARGET_DIR="/path/to/backup-repo"
|
|
|
|
# Prefix for commit message (timestamp is appended automatically)
|
|
COMMIT_MESSAGE_PREFIX="backup: rsync sync"
|
|
|
|
# SSH key file used by rsync/ssh
|
|
SSH_KEY_FILE="/root/.ssh/backup_rsync"
|
|
|
|
# Optional extra SSH options
|
|
# SSH_OPTIONS="-o IdentitiesOnly=yes -o StrictHostKeyChecking=yes"
|
|
|
|
# Optional full custom SSH command for rsync (overrides SSH_KEY_FILE/SSH_OPTIONS)
|
|
# RSYNC_RSH="ssh -i /path/to/key -o StrictHostKeyChecking=yes"
|