project:rsnapshot-zfs-helper:rsnapshot-backup-example
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| project:rsnapshot-zfs-helper:rsnapshot-backup-example [2018/02/20 14:51] – 92.75.65.74 | project:rsnapshot-zfs-helper:rsnapshot-backup-example [2018/05/15 14:20] (current) – [Details] 94.217.236.160 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| **CAVEAT : WORK IN PROGRESS** | **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.1519134663.txt.gz · Last modified: 2018/02/20 14:51 by 92.75.65.74