English | 简体中文
easy-backup
It is a simple and easy-to-use linux tool for full/incremental file backup, supporting daily incremental data backup/recovery.
git clone https://github.com/shencangsheng/easy-backup.git
cd easy-backup
chmod +x easy-backup-cli
cp easy-backup-cli /usr/local/bin/
- Created full backup
/example/backups/archive.tar.gz
/example/backups/archive.snar
easy-backup-cli --snapshot='backup' --action='full' --archive-dir='/example/archive' --output-path='/example/backups'
- Created incremental backup
/example/backups/archive-inc-yyyy-MM-dd.tar.gz
easy-backup-cli --snapshot='backup' --action='inc' --archive-dir='/example/archive' --output-path='/example/backups'
- Restore snapshot
/example/backups/archive.tar.gz
to/example/restore/archive
easy-backup-cli --snapshot='restore' --archive-file='/example/backups/archive.tar.gz' --output-path='/example/restore'
- Restore to the snapshot of 2024-02-01
/example/restore/archive
easy-backup-cli --snapshot='restore' --archive-file='/example/backups/archive.tar.gz' --output-path='/example/restore' --end-date='2024-02-01'
Run Dependencies
/bin/bash
getopts
tar
use tar snapshot realization
easy-backup-cli -h
A short snippet describing the license (MIT)
MIT © Cangsheng Shen