rsync-snapshot.conf
author Tero Marttila <terom@paivola.fi>
Sun, 22 Apr 2012 13:16:10 +0300
changeset 44 7069af6b7025
parent 38 24cdf1372cab
child 51 9525d3e150ec
permissions -rw-r--r--
pvlbackup-rsync-snapshot: use pvl.backup.rsync.parse_source for sources, to support local LVM snapshots; also implement lvm-options section for target
## Options
[snapshots]
format      = %Y%m%d-%H%M%S

# rsync options, in invoke.optargs format
[rsync-options]
archive             = true
hard-links          = true
one-file-system     = true
numeric-ids         = true
delete              = true

## Intervals
[intervals/recent]
format  = 

[intervals/day]
format  = %Y-%m-%d

[intervals/week]
format  = %Y-%W

[intervals/month]
format  = %Y-%m

[intervals/year]
format  = %Y

## Targets
# test
[targets/test]
path    = ./test
source  = /srv/lvm-test/

[targets/test/intervals]
recent  = 4
day     = 7
year    = 

[targets/test/rsync_options]
exclude-from    = ignore.list


# test-lvm
[targets/test-lvm]
path    = ./test-lvm
source  = lvm:asdf:test

[targets/test-lvm/intervals]
recent  = 4

[targets/test-lvm/lvm-options]
wait    = 1
size    = 1G



## Runs
[run/twice-daily]
test        = true

[run/hourly]
test-lvm    = true