An incremental backup program
Project description
EEBackup - File Backup Tool
中文
EEBackup is a lightweight file backup tool that does not rely on any third-party libraries. It supports multiple backup methods and flexible configuration options.
Core Features
- Incremental Backup: Only backs up changed files, saving storage space
- Command Line Control: Provides rich command line parameters for precise control
- Cross-Platform Compatibility: Based on Python standard library, supports Windows, Linux, and Mac systems
Quick Start
# Perform a simple backup
python eebackup.py -s ./data -t ./backup -b
# Create a configuration file
python eebackup.py -s ./data -t ./backup -m
# Use the configuration file for backup
python eebackup.py -c -b
# View complete help information
python eebackup.py -h
Usage
Basic Command
python eebackup.py [OPTIONS]
Parameter Description
-c, --config [FILE]Specify the configuration file (default: eebackup.json)-m, --make [FILE]Create a configuration file (default: eebackup.json)-b, --backup [NAME]Perform a backup operation-s, --source PATHSpecify source directory or URL-t, --target PATHSpecify backup target directory or URL-d, --delete FILEDelete specified backup file-a, --allPerform a full backup-l, --list [FILE]List current backup file information--max NSet maximum number of backups (default: 10)-n, --name NAMEName for this backup-f, --format FORMATBackup format (e.g., "%Y%m%d-%H_%M_%S.zip")-e, --exclude PATTERNExclude file pattern (can be used repeatedly)-r, --restore FILERestore specified backup file
Configuration File
The configuration file is in JSON format and includes:
sourceSource directory or URLtargetTarget directory or URLfull_backupWhether to perform a full backupformatBackup formatmax_backupsMaximum number of backupsexcludeList of files to exclude
Examples
# Create a configuration file
python eebackup.py -m
# Perform a simple backup
python eebackup.py -s ./data -t ./backup -b
# Use the configuration file for backup
python eebackup.py -c eebackup.json -b
# Restore a backup
python eebackup.py -r "2023-10-01:12_00_00" -c eebackup.json
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
eebackup-0.1.0.tar.gz
(7.1 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 eebackup-0.1.0.tar.gz.
File metadata
- Download URL: eebackup-0.1.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00b56dcf0e2e04f1e80875a3a1174b22f57f775b3b7078c02c9da05fd2723275
|
|
| MD5 |
3fc7fb8460769be74167c509a441b962
|
|
| BLAKE2b-256 |
740da419257149dba8356f5d55cdc885321d1f07d6ed18225bb2a0cd18dba0f0
|
File details
Details for the file eebackup-0.1.0-py3-none-any.whl.
File metadata
- Download URL: eebackup-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34005334e856b801dc90a213c6229a20be5b352752cfcf234adfe7b6846e07cc
|
|
| MD5 |
3ddc173b2dae5c72fab9694b6207dc6e
|
|
| BLAKE2b-256 |
bafaaaadf2c479d89769a22ec20e40ba49a401c2a17573ed27a8704713e8008e
|