15 lines
538 B
Bash
15 lines
538 B
Bash
# Remote rsync source. Example: backup@example.com:/srv/data/project/
|
|
RSYNC_SOURCE="user@example.com:/path/to/source/"
|
|
|
|
# Local sync destination (must be a directory inside GIT_REPO_DIR)
|
|
RSYNC_TARGET_DIR="/path/to/monorepo/backups/source"
|
|
|
|
# Local monorepo path
|
|
GIT_REPO_DIR="/path/to/monorepo"
|
|
|
|
# Prefix for commit message (timestamp is appended automatically)
|
|
COMMIT_MESSAGE_PREFIX="backup: rsync sync"
|
|
|
|
# Optional: custom SSH command for rsync (leave empty if not needed)
|
|
# RSYNC_RSH="ssh -i /path/to/key -o StrictHostKeyChecking=yes"
|