https://github.com/shencangsheng/easy-backup
easy-backup is a simple and easy-to-use server backup tool for both full and incremental backups, and it supports daily incremental data backup/recovery. | easy-backup 是一个简单易用的 linux 文件全量/增量备份工具,支持按日增量/恢复数据
https://github.com/shencangsheng/easy-backup
backup backup-script bash incremental linux restore shell snapshot tools
Last synced: 9 months ago
JSON representation
easy-backup is a simple and easy-to-use server backup tool for both full and incremental backups, and it supports daily incremental data backup/recovery. | easy-backup 是一个简单易用的 linux 文件全量/增量备份工具,支持按日增量/恢复数据
- Host: GitHub
- URL: https://github.com/shencangsheng/easy-backup
- Owner: shencangsheng
- License: mit
- Created: 2022-01-05T12:01:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T06:17:30.000Z (about 2 years ago)
- Last Synced: 2024-04-13T03:59:14.740Z (about 2 years ago)
- Topics: backup, backup-script, bash, incremental, linux, restore, shell, snapshot, tools
- Language: Shell
- Homepage:
- Size: 40 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Easy Backup
English | [简体中文](./i18n/README.zh-cn.md)
`easy-backup` It is a simple and easy-to-use linux tool for full/incremental file backup, supporting daily incremental data backup/recovery.
## Trying
```bash
git clone https://github.com/shencangsheng/easy-backup.git
cd easy-backup
chmod +x easy-backup-cli
cp easy-backup-cli /usr/local/bin/
```
## Examples
1. Created full backup `/example/backups/archive.tar.gz` `/example/backups/archive.snar`
```bash
easy-backup-cli --snapshot='backup' --action='full' --archive-dir='/example/archive' --output-path='/example/backups'
```
2. Created incremental backup `/example/backups/archive-inc-yyyy-MM-dd.tar.gz`
```bash
easy-backup-cli --snapshot='backup' --action='inc' --archive-dir='/example/archive' --output-path='/example/backups'
```
3. Restore snapshot `/example/backups/archive.tar.gz` to `/example/restore/archive`
```bash
easy-backup-cli --snapshot='restore' --archive-file='/example/backups/archive.tar.gz' --output-path='/example/restore'
```
4. Restore to the snapshot of 2024-02-01 `/example/restore/archive`
```bash
easy-backup-cli --snapshot='restore' --archive-file='/example/backups/archive.tar.gz' --output-path='/example/restore' --end-date='2024-02-01'
```
### Linux
Run Dependencies
- `/bin/bash`
- `getopts`
- `tar`
use [tar snapshot](https://www.gnu.org/software/tar/manual/html_node/Incremental-Dumps.html) realization
```bash
easy-backup-cli -h
```
## License
A short snippet describing the license (MIT)
MIT © Cangsheng Shen