]> git.tuebingen.mpg.de Git - dss.git/commit
Introduce --no-resume.
authorAndre Noll <maan@systemlinux.org>
Mon, 1 Feb 2010 09:21:35 +0000 (10:21 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 1 Feb 2010 09:21:35 +0000 (10:21 +0100)
commit17e6c1cc9412026d87f4a70a5e86b39e2e13ce62
tree917e3dfe857d6d349eb3556f4db3e723379bba28
parent9b972ea107540e54633b0e94dec210a6e1649f8d
Introduce --no-resume.

If the dss daemon (or the rsync process) is killed while a snaphot
is being created, e.g. because of a server shutdown, the latest
snapshot remains incomplete until it is removed by the usual shapshot
pruning mechanism.

This patch changes the snapshot creation behaviour if the
most recently created snapshot happens to be incomplete and the
new --no-resume option is not given. In this case the directory
of the incomplete snapshot is reused as the destination directory
for the the new snapshot.

This change saves disk space and reduces the snapshot creation time,
depending of course on how far the previous rsync process got before
it was interrupted.
dss.c
dss.ggo