rsync-snapshot.conf
author Tero Marttila <terom@paivola.fi>
Tue, 21 Feb 2012 16:28:48 +0200
changeset 25 d2bee6bc173a
parent 17 b88653920e7a
child 36 6070507e09ce
permissions -rw-r--r--
version: 0.2.2
## 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