xref: /dragonfly/tools/snapshots/README (revision 335b9e93)
1
2    Generate daily HEAD snapshots.  Basically setup the config file and
3    these files in ~root/snapshots and add a root cron job:
4
5    23 2 * * *      cd /root/snapshots; lockf -ks -t 0 .buildlock ./docron
6
7    The snapshots can be made available via rsyncd using a rsyncd.conf
8    file similar to this:
9
10uid = nobody
11gid = nobody
12use chroot = yes
13
14[snapshots]
15        path = /archive/snapshots
16
17    Another machine can mirror the snapshots using something like this:
18
19    lockf -ks -t 0 /root/adm/.rsynclock2 /usr/pkg/bin/rsync -aHS	\
20	snapshotbox.domain::snapshots/ /archive/snapshots/
21