Project

backsum

0.0
No commit activity in last 3 years
No release in over 3 years
backsum is unix base the file system backup tools, it will incremental backup remote file to local storage.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 4.0.3
>= 0
~> 2.14.1
~> 0.7.1

Runtime

~> 0.5.2
~> 1.6.2
~> 0.3.6
~> 1.0.0
 Project Readme

Backsum

backsum is docker base the file system backup tools, it will incremental backup remote file to local storage.

Installation

Add docker-compose config file and start script:

wget https://github.com/sunteya/backsum/raw/master/contrib/docker-compose.yml
wget https://github.com/sunteya/backsum/raw/master/contrib/start-backsum
chmod +x start-backsum

Usage

First, enter you backup project, it will run backsum docker image base on project's name folder.

./start-backsum PROJECT_NAME

In docker container, you can should backup.sh script

touch backup.sh
chmod +x backup.sh

vi backup.sh

#!/usr/bin/env bash
set -x
backsum perform SERVER_HOST:/etc :/root :/usr/local
cleanup cleanup 5 # keep last 5 backups

Finally, you can backup you server in container.

./backup.sh

Or, run it on you machine.

./start-backsum PROJECT_NAME ./backup.sh

Advanced

  • The program will reuse the latest backup data by "rsync hardlink", for reduce disk usage.
  • If you want to use "APFS clone" or "BTRFS reflink" instead of "rsync hardlink".
  • You need to create the "MIRROR" directory by yourself before performing the backup.
  • For details, please refer to "contrib/mirror-backsum"

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request