rsync-snapshot.conf
author Tero Marttila <terom@paivola.fi>
Fri, 02 Mar 2012 17:09:44 +0200
changeset 36 6070507e09ce
parent 17 b88653920e7a
child 37 9103a9456087
permissions -rw-r--r--
change rsync-snapshot.conf to use [foo/bar] syntax, because
## 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  = 
keep    = 4

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

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

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

[intervals/year]
format  = %Y
keep    = 1

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

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

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

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

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