Skip to content

moetiker/znapzend

 
 

Repository files navigation

ZnapZend 0.8.6

Build Status Coverage Status

ZnapZend is a ZFS centric backup tool. It relies on snapshot, send and receive todo its work. It has the built-in ability to to manage both local snapshots as well as remote copies by thining them out as time progresses.

The ZnapZend configuration is stored as properties in the ZFS filesystem itself.

Zetup

To zetup znapzend follow these zimple inztructionz

wget https://github.com/oetiker/znapzend/releases/download/v0.8.6/znapzend-0.8.6.tar.gz
tar zxvf znapzend-0.8.6.tar.gz
cd znapzend-0.8.6
./configure --prefix=/opt/znapzend-0.8.6

if configure complains about missing perl modules, run

./setup/build-thirdparty.sh /opt/znapzend-0.8.6/thirdparty

to install the missing modules into the specified directry. This will NOT messup your local perl installation!

Now you can run configure again and then

make install

Configuration

Use the znapzendzetup program to define your backup settings. For remote backup, znapzend uses ssh. Make sure to configure password free login for ssh to the backup target host.

Running

The znapzend demon is responsible for doing the actual backups.

To see if your configuration is any good, run znapzend in noaction mode first.

/opt/znapzend-0.8.6/bin/znapzend --noaction --debug

If you don't want to wait for the scheduler to actually schedule work, you can also force immediate action by calling

/opt/znapzend-0.8.6/bin/znapzend --noaction --debug --runonce=<src_dataset>

then when you are happy with what you got, start it in daemon mode.

/opt/znapzend-0.8.6/bin/znapzend --daemonize

Best is to integrate znapzend into your system startup sequence, but you can also run it by hand.

For illumos OSes you can import the znapzend service manifest provided in the install directory:

svccfg validate /opt/znapzend-0.8.6/init/znapzend.xml
svccfg import /opt/znapzend-0.8.6/init/znapzend.xml

and then enable the service

svcadm enable oep/znapzend

Statistics

If you want to know how much space your backups are using, try the znapzendztatz utility.

Enjoy!

Dominik Hassler & Tobi Oetiker 2014-07-30

About

zfs send/receive backup system

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Perl 79.0%
  • Shell 21.0%