1 Backup Control Scripting
2 ========================
4 The script +dupltool+ is a wrapper for duplicity that usually just
5 invokes duplicity with all arguents passed on, but every month it
6 first makes a stash of the most recent succession of daily snapshots,
7 so that the duplicity run at this time is a monthly snapshot.
9 The script +duplicity-daily+ is a simple control script for daily
10 backup that uses configuration from +/etc/duplicity-daily.conf+ that
11 defines which backups to make, and from +~/.ssh/config+ as to how to
12 connect to the target host (or hosts).
14 Administration Example
15 ----------------------
17 .This is a +/etc/duplicity-daily+ sample
20 OPTIONS=--no-encryption
27 The above sample declares backup (without encryption) of directory
28 trees +/root+, +/etc+, +/home+ to host +backup+ (as declared in
29 +~/.ssh/config+) into directories under the user's directory +backup+.
31 .This is a +~/.ssh/config+ sample
36 identityfile ~/.ssh/thishost-backup
37 ServerAliveInterval 15
44 Note that for the above sample, the backup client +root@thishost+ has
45 prepared a password-less ssh key to +thishost@backup.lan+ so that
46 daily backup can happen without operator intervention.
51 A debian package is built with
55 provided that the build environment is set up, i.e. an ordinary debian
56 package building environment.
58 The package is then installed with
60 # dpkg -i ../buckap_<TAB>
62 Doing so will install +/usr/bin/dupltool+ and
63 +/etc/cron.daily/duplicity-daily+, as well as providing an example
64 +/etc/duplicity-daily.conf+ (incuding rudimentary instructions).