7
|
1 |
what:
|
|
2 |
rsync-based backups.
|
|
3 |
|
|
4 |
scripts:
|
|
5 |
rsync-wrapper:
|
|
6 |
Provides an rsync wrapper binary (scripts/pvlbackup-rsync-wrapper) intended to be used via ~/.ssh/authorized_keys:
|
|
7 |
|
|
8 |
command="/usr/local/bin/pvlbackup-rsync-wrapper --readonly --restrict-path=/foo" ssh-rsa ...
|
|
9 |
|
|
10 |
XXX: the current implementation is not exactly security-audited, the restrictions serve more to avoid mistakes, and do not protect against
|
|
11 |
determined misuse of your ssh key..
|
|
12 |
|
|
13 |
LVM Snapshots:
|
|
14 |
|
|
15 |
As an additional feature, rsync-wrapper provides support for reading LVM volumes as snapshots:
|
|
16 |
|
|
17 |
rsync -ax foohost:lvm:vg00:lv00 /media/backup/foohost-lv00
|
|
18 |
|
|
19 |
This will transparently create a snapshot, mount it (read-only), and run the server-side rsync from within the mounted snapshot.
|
|
20 |
|
|
21 |
TODO:
|
|
22 |
* fsck?
|
|
23 |
|