author | Tero Marttila <terom@paivola.fi> |
Fri, 02 Mar 2012 15:40:21 +0200 | |
changeset 29 | 5abd153d78eb |
parent 12 | fbfdde7326f4 |
permissions | -rw-r--r-- |
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 |
||
12
fbfdde7326f4
rsync-snapshot: manage --link-dest'd interval snapshots
Tero Marttila <terom@paivola.fi>
parents:
7
diff
changeset
|
24 |
rsync-snapshot: |
fbfdde7326f4
rsync-snapshot: manage --link-dest'd interval snapshots
Tero Marttila <terom@paivola.fi>
parents:
7
diff
changeset
|
25 |
Manage hardlinked snapshots stored for configureable intervals. |
fbfdde7326f4
rsync-snapshot: manage --link-dest'd interval snapshots
Tero Marttila <terom@paivola.fi>
parents:
7
diff
changeset
|
26 |
|
fbfdde7326f4
rsync-snapshot: manage --link-dest'd interval snapshots
Tero Marttila <terom@paivola.fi>
parents:
7
diff
changeset
|
27 |
Uses rsync --link-dest. |