CLI tool to sync backups from remote servers via rsync.
pip install backup7 --break-system-packageFor system-wide installation:
sudo pip install backup7 --break-system-packageCreate a new configuration file:
backup7 generate Example:
backup7 generate server1.confEdit the generated config file to set your server details.
backup7 sync# Remote Server Configuration
USERNAME=ubuntu
IP=
PORT=22
# Password Authentication (NOT RECOMMENDED)
# Uncomment and set password to use password-based SSH authentication
PASSWORD=your_password_here
# OR Use SSH Key Authentication (RECOMMENDED)
# If set, this path is relative to the current working directory
# where the command is executed. Use absolute path for consistency.
# SSH_KEY_PATH=~/.ssh/id_rsa
# Local backup output directory (relative or absolute)
OUTPUT_DIR=./backup
# =============================================================================
# FILE MAPPINGS
# =============================================================================
# Format: /remote/path -> /local/path
# - Remote paths MUST be absolute (start with /)
# - Local paths are relative to OUTPUT_DIR
# =============================================================================
map_start
# /home/ubuntu/documents -> ./documents
# /home/ubuntu/pictures -> ./pictures
Config files are stored in /etc/backup7/backup-configs/
- rsync
- ssh
- SSH key or password access to remote server