project:rsnapshot-zfs-helper:rsnapshot-backup-example
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | project:rsnapshot-zfs-helper:rsnapshot-backup-example [2018/05/15 14:20] (current) – [Details] 94.217.236.160 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Example for using rsnapshot-zfs-helper with rsnapshot-backup ====== | ||
+ | |||
+ | **CAVEAT : WORK IN PROGRESS** | ||
+ | |||
+ | ==== preface ==== | ||
+ | |||
+ | I'm using '' | ||
+ | |||
+ | It uses one setup per system to backup with one config, exclude and script file. | ||
+ | There are also individual backup and logging directories. | ||
+ | There is a scheduler which parallelizes backup runs and a configuration frontend | ||
+ | using template files to create the backup jobs. | ||
+ | |||
+ | There is also an enabling mechnism using symlinks. | ||
+ | |||
+ | A typical backup job configuration (created with '' | ||
+ | |||
+ | < | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | |||
+ | / | ||
+ | / | ||
+ | |||
+ | / | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | |||
+ | This example has been created using Debian 9.3 . | ||
+ | |||
+ | ==== Setup ==== | ||
+ | |||
+ | Inside ''/ | ||
+ | |||
+ | < | ||
+ | cmd_cp | ||
+ | cmd_preexec | ||
+ | cmd_postexec | ||
+ | </ | ||
+ | **Do NOT replace '''< | ||
+ | |||
+ | Inside ''/ | ||
+ | |||
+ | < | ||
+ | storage_backend=zfs_snapshots | ||
+ | zfs_helper=/ | ||
+ | zfs_zpool=< | ||
+ | zfs_dataset_prefix=backup/ | ||
+ | </ | ||
+ | ** No leading slash - but a trailing one! ** | ||
+ | |||
+ | To create a backup job run: | ||
+ | < | ||
+ | rsnapshot-backup-conf < | ||
+ | ssh-copy-id <IP> | ||
+ | rsnasphot-backup-enable < | ||
+ | </ | ||
+ | ==== Details ==== | ||
+ | |||
+ | This is what '' | ||
+ | |||
+ | The template mechanism creates: | ||
+ | < | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | |||
+ | / | ||
+ | / | ||
+ | |||
+ | / | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | |||
+ | The zfs filesystem dataset is created: | ||
+ | < | ||
+ | zfs create < | ||
+ | </ | ||
+ | |||
+ | rsnapshot-zfs-helper is to be configured inside rsnapshot' | ||
+ | |||
+ | Additionally, | ||
+ | |||
+ | < | ||
+ | cmd_cp | ||
+ | cmd_preexec | ||
+ | cmd_postexec | ||
+ | </ | ||
+ | |||
+ | '' | ||
+ | rotation levels. | ||
+ | |||
+ | |||
project/rsnapshot-zfs-helper/rsnapshot-backup-example.txt · Last modified: 2018/05/15 14:20 by 94.217.236.160