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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Easy Backup

English | 简体中文

easy-backup It is a simple and easy-to-use linux tool for full/incremental file backup, supporting daily incremental data backup/recovery.

Trying

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
easy-backup-cli --snapshot='backup' --action='full' --archive-dir='/example/archive' --output-path='/example/backups'
  1. 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'
  1. 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'
  1. 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'

Linux

Run Dependencies

  • /bin/bash
  • getopts
  • tar

use tar snapshot realization

easy-backup-cli -h

License

A short snippet describing the license (MIT)

MIT © Cangsheng Shen

About

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

License:MIT License


Languages

Language:Shell 100.0%