An open API service indexing awesome lists of open source software.

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 文件全量/增量备份工具,支持按日增量/恢复数据

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