TechSomething

ZBACKUP – VERY QUICK QUICKSTART

source: http://zbackup.org/

install on debian:

apt-get install cmake libssl-dev libprotobuf-dev liblzma-dev liblzo2-dev zlib1g-dev protobuf-compiler protobuf-c-compiler

clone the repo:

git clone https://github.com/zbackup/zbackup

build & install:

cd zbackup
cmake .
make
sudo make install

or just run as ./zbackup #

initiate repo:

zbackup init –non-encrypted /zbackup/repo

backup something:

tar c foler_to_backup | zbackup backup –threads 2 –cache-size 1024mb –non-encrypted /zbackup/repo/backups/backup_name_timestamp

restore something:

zbackup restore –threads 2 –cache-size 1024mb –non-encrypted /data/zbackup/repo/backups/backup_sh-im01_201512040415 > backup_sh-im01_201512040415.tar

delete something:
delete the backup file from your /zbackup/repo/backups and run this command on the repo to perform garbage collection and delete unused chunks:

zbackup gc –non-encrypted /zbackup/repo/

notes:
adjust –threads and –cache-size as needed

mirror the repo to another server:
just copy it, I use rsync.
then restore the backup pointing to the backups folder like you would do on the main server.