rsync-snapshot.conf
author Tero Marttila <terom@paivola.fi>
Wed, 15 Feb 2012 14:15:38 +0200
changeset 16 d4b9954273a1
parent 15 61f6d0ca0432
child 17 b88653920e7a
permissions -rw-r--r--
[target:$] intervals -> [target:$:intervals]
## 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