# We use Perl syntax, but it should be easy to follow %config = ( enable => 1, # enable snapshot, 1 for true, 0 for false debug => 1, # enable verbose output mv => '/bin/mv', # path to mv 'chown' => '/usr/sbin/chown', mount => '/sbin/mount', ); $fs{'/'} = { # snapshot settings for /, should be a filesystem enable => 0, # enable snapshot for this filesystem dir => ".snap", # relative path to store snapshots (/.snap) weekly => 3, # 3 weekly snapshot with the last being week.0 daily => 3, # 3 daily snapshot. The last is daily.0 hourly => 10, # 10 hourly snapshot. The last is hour.0 atHour => [0, 12, 20], # periodic task at 0, 12, and 20 o'clock all => 20, # at most 20 snapshots for this filesystem }; $fs{'/home'} = { # snapshot settings for / enable => 0, # enable snapshot for this filesystem dir => ".snap", # relative path to /home weekly => 3, # 3 weekly snapshot daily => 1, # 1 daily snapshot hourly => 10, # 10 hourly snapshot atHour => undef, # periodic maintain at each hour all => 16, # at most 16 snapshots for this filesystem }; # Note: # # *) If ``atHour'' doesn't contain hour 0, then daily and weekly # maintaining task will not take place. # # *) There are at most 20 snapshots for each filesystem. # See mount(8).