CLI tool to sync backups from remote servers via rsync
Project description
backup7
CLI tool to sync backups from remote servers via rsync.
Installation
pip install backup7 --break-system-package
For system-wide installation:
sudo pip install backup7 --break-system-package
Usage
Generate Config
Create a new configuration file:
backup7 generate
Example:
backup7 generate server1.conf
Edit the generated config file to set your server details.
Sync Backups
backup7 sync
Configuration Format
# 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 Location
Config files are stored in /etc/backup7/backup-configs/
Requirements
- rsync
- ssh
- SSH key or password access to remote server
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
backup7-0.1.0.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file backup7-0.1.0.tar.gz.
File metadata
- Download URL: backup7-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9256cc8aab25b68ffd6666d47a4cf783a8af6414ac3c18ac9ae2bb07b0532a0d
|
|
| MD5 |
958860481893a75a885a6aa2c3071e0d
|
|
| BLAKE2b-256 |
f54676c5e808f43f2b18565f1cc2b084796e0bc8708befbcaf4c02fbab4dacd4
|
File details
Details for the file backup7-0.1.0-py3-none-any.whl.
File metadata
- Download URL: backup7-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fbc31533e691a93f13bef02186e0b2591db9015d0dc04cfc04fa4ec1a8ce20e
|
|
| MD5 |
ab14ea7eaa50696707569a7742327ab1
|
|
| BLAKE2b-256 |
f9d90008eb110bd9c2fc7da0706d17be7a272b47ccfac675f61d27e17e396861
|