project:rsnapshot-zfs-helper:rsnapshot-backup-example
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| project:rsnapshot-zfs-helper:rsnapshot-backup-example [2018/01/30 17:37] – created 88.65.214.4 | 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 ====== | + | ====== 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 . | 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.1517330261.txt.gz · Last modified: 2018/01/30 17:37 by 88.65.214.4