Skip to main content

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 PATH Specify source directory or URL
  • -t, --target PATH Specify backup target directory or URL
  • -d, --delete FILE Delete specified backup file
  • -a, --all Perform a full backup
  • -l, --list [FILE] List current backup file information
  • --max N Set maximum number of backups (default: 10)
  • -n, --name NAME Name for this backup
  • -f, --format FORMAT Backup format (e.g., "%Y%m%d-%H_%M_%S.zip")
  • -e, --exclude PATTERN Exclude file pattern (can be used repeatedly)
  • -r, --restore FILE Restore specified backup file

Configuration File

The configuration file is in JSON format and includes:

  • source Source directory or URL
  • target Target directory or URL
  • full_backup Whether to perform a full backup
  • format Backup format
  • max_backups Maximum number of backups
  • exclude List 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eebackup-0.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

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

Hashes for eebackup-0.1.0.tar.gz
Algorithm Hash digest
SHA256 00b56dcf0e2e04f1e80875a3a1174b22f57f775b3b7078c02c9da05fd2723275
MD5 3fc7fb8460769be74167c509a441b962
BLAKE2b-256 740da419257149dba8356f5d55cdc885321d1f07d6ed18225bb2a0cd18dba0f0

See more details on using hashes here.

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

Hashes for eebackup-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34005334e856b801dc90a213c6229a20be5b352752cfcf234adfe7b6846e07cc
MD5 3ddc173b2dae5c72fab9694b6207dc6e
BLAKE2b-256 bafaaaadf2c479d89769a22ec20e40ba49a401c2a17573ed27a8704713e8008e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page