From: Andre Noll Date: Mon, 7 Feb 2011 16:57:40 +0000 (+0100) Subject: Merge branch 't/recycling' X-Git-Tag: v0.1.5~19 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=44c1bec753339f5cddcc34c4419505ec928cf88a;hp=379ec51fd7e1a4a7fa7fd8cbc091ebccf8a70486;p=dss.git Merge branch 't/recycling' --- diff --git a/INSTALL b/INSTALL index 1043ec5..ff4274b 100644 --- a/INSTALL +++ b/INSTALL @@ -51,7 +51,7 @@ Then execute the commands In order to print the list of all snapshots created so far, use - dss --list + dss --ls Yes, it's really that easy. Of course, dss supports many more features and config options such as taking snapshots from remote diff --git a/Makefile b/Makefile index f59e315..99b8286 100644 --- a/Makefile +++ b/Makefile @@ -45,10 +45,12 @@ dss.1: dss dss.1.inc clean: rm -f *.o dss dss.1 dss.1.html Makefile.deps *.ppm *.png *~ cmdline.c cmdline.h index.html -index.html: dss.1.html index.html.in INSTALL README +index.html: dss.1.html index.html.in INSTALL README NEWS sed -e '/@README@/,$$d' index.html.in > $@ grutatxt -nb < README >> $@ - sed -e '1,/@README@/d' -e '/@INSTALL@/,$$d' index.html.in >> $@ + sed -e '1,/@README@/d' -e '/@NEWS@/,$$d' index.html.in >> $@ + grutatxt -nb < NEWS >> $@ + sed -e '1,/@NEWS@/d' -e '/@INSTALL@/,$$d' index.html.in >> $@ grutatxt -nb < INSTALL >> $@ sed -e '1,/@INSTALL@/d' -e '/@MAN_PAGE@/,$$d' index.html.in >> $@ sed -e '1,/Return to Main Contents/d' -e '/Index/,$$d' dss.1.html >> $@ diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..6b9deec --- /dev/null +++ b/NEWS @@ -0,0 +1,36 @@ +0.1.4 (2010-11-08) +~~~~~~~~~~~~~~~~~~ +This version of dss contains some new features, many improvements of +existing features and several bug fixes. + +Support for resuming snapshot creation after restart has been added +and snapshot removal is deferred until at least one current snapshot +exists. The internal handling of the various hooks has been simplified +and many error messages have been clarified. On SIGHUP, dss now writes +its configuration and internal state to the log file. + +0.1.3 (2009-06-06) +~~~~~~~~~~~~~~~~~~ +You can now specify pre-rm/post-rm-hooks that are executed whenever +a snapshot is deleted. This release adds better compatibility with +rsync 3.0, and avoids busy loops when automatically restarting the +rsync process. + +0.1.2 (2009-03-05) +~~~~~~~~~~~~~~~~~~ +This release includes the reason why a snapshot gets removed in the +log message. It will never remove the snapshot that is currently +being created. It will really pass the full path to the last complete +snapshot in the post_create_hook. + +0.1.1 (2008-11-13) +~~~~~~~~~~~~~~~~~~ +This release prevents busy loops on rsync exit code 13. It ignores +any snapshot directory with creation time > completion time. It +opens /dev/null for reading and writing when executing rsync. It shows +human readable snapshot creation duration when listing snapshots. It +restarts the rsync process if it returned with exit code 13. + +0.1.0 (2008-10-10) +~~~~~~~~~~~~~~~~~~ +Initial public release. diff --git a/daemon.c b/daemon.c index 17a171e..d48e30c 100644 --- a/daemon.c +++ b/daemon.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1997-2009 Andre Noll + * Copyright (C) 1997-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ diff --git a/df.c b/df.c index 37e2b43..513bd19 100644 --- a/df.c +++ b/df.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2009 Andre Noll + * Copyright (C) 2008-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ diff --git a/dss.c b/dss.c index 223f80e..3508d38 100644 --- a/dss.c +++ b/dss.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2009 Andre Noll + * Copyright (C) 2008-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -964,7 +964,7 @@ static int parse_config_file(int override) conf.logfile_given = 1; } } - if (conf.logfile_given) { + if (conf.logfile_given && conf.run_given && conf.daemon_given) { logfile = open_log(conf.logfile_arg); log_welcome(conf.loglevel_arg); } diff --git a/dss.ggo b/dss.ggo index 7934db3..1662e0d 100644 --- a/dss.ggo +++ b/dss.ggo @@ -1,9 +1,9 @@ -# Copyright (C) 2008-2009 Andre Noll +# Copyright (C) 2008-2010 Andre Noll # # Licensed under the GPL v2. For licencing details see COPYING. package "dss" -version "0.1.3" +version "0.1.4" purpose "the dyadic snapshot scheduler dss creates hardlink-based snapshots of a given directory on a remote @@ -77,9 +77,10 @@ option "logfile" - "Logfile for the dss daemon process" string typestr="filename" optional -details=" - This option is mostly useful for the run command if --daemon - is also given. +details = " + This option is only honored if both --run and --daemon are + given. Otherwise it is silently ignored and log output is + written to stderr. " ################## @@ -268,7 +269,7 @@ option "pre-create-hook" r #~~~~~~~~~~~~~~~~~~~~~~~~~~ "Executed before snapshot creation" string typestr="command" -default = "/bin/true" +default = "true" optional details=" Execute this command before trying to create a new snapshot. @@ -287,7 +288,7 @@ option "post-create-hook" o #~~~~~~~~~~~~~~~~~~~~~~~~~~ "Executed after snapshot creation" string typestr="command" -default = "/bin/true" +default = "true" optional details=" Execute this after a snapshot has successfully been @@ -304,7 +305,7 @@ option "pre-remove-hook" - #~~~~~~~~~~~~~~~~~~~~~~~~~~ "Executed before snapshot removal" string typestr="command" -default = "/bin/true" +default = "true" optional details=" Execute this command before removing a snapshot. The full @@ -326,7 +327,7 @@ option "post-remove-hook" - #~~~~~~~~~~~~~~~~~~~~~~~~~~ "Executed after snapshot removal" string typestr="command" -default = "/bin/true" +default = "true" optional details=" Execute this after a snapshot has successfully been removed. As @@ -339,7 +340,7 @@ option "exit-hook" e #~~~~~~~~~~~~~~~~~~~ "Executed if run command exits" string typestr="command" -default = "/bin/true" +default = "true" optional details=" This hook is only used if the --run command was given which @@ -400,7 +401,8 @@ details=" Note that not every file system supports the concept of inodes. Moreover it is not possible to reliably detect whether this is the case. Therefore this feature is disabled by default. It's - safe to enable it for ext3 file systems on linux though. + safe to enable it for ext2/ext3/ext4 file systems on linux + though. A value of zero (the default) deactivates this check. " diff --git a/error.h b/error.h index b492c32..9e910e2 100644 --- a/error.h +++ b/error.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2009 Andre Noll + * Copyright (C) 2006-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ diff --git a/exec.c b/exec.c index a5d0cd0..2887cb2 100644 --- a/exec.c +++ b/exec.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2009 Andre Noll + * Copyright (C) 2003-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ diff --git a/fd.c b/fd.c index a0b897e..2b002c7 100644 --- a/fd.c +++ b/fd.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2009 Andre Noll + * Copyright (C) 2006-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ diff --git a/fd.h b/fd.h index 806f894..991afd4 100644 --- a/fd.h +++ b/fd.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2009 Andre Noll + * Copyright (C) 2006-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ diff --git a/index.html.in b/index.html.in index b42402f..d984844 100644 --- a/index.html.in +++ b/index.html.in @@ -23,6 +23,7 @@
[README] + [NEWS] [Download] [INSTALL] [License] @@ -41,6 +42,15 @@
+
+

+ NEWS +

+
+ + @NEWS@ + +

@@ -64,7 +74,7 @@ tarball - of the current tree. If you prefer to download the tarball of + of the current master branch. If you prefer to download the tarball of the latest release, select the corresponding snapshot link on the @@ -106,7 +116,7 @@

André Noll, maan@systemlinux.org -

Comments and bug reports are welcome Please provide +

Comments and bug reports are welcome. Please provide enough info such as the version of dss you are using and relevant parts of the logs. Including the string [dss] in the subject line is also a good idea. diff --git a/log.h b/log.h index 178c686..5d38c7b 100644 --- a/log.h +++ b/log.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1997-2009 Andre Noll + * Copyright (C) 1997-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ diff --git a/signal.c b/signal.c index d22cd59..3bbe87d 100644 --- a/signal.c +++ b/signal.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2009 Andre Noll + * Copyright (C) 2004-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ diff --git a/signal.h b/signal.h index a0e9899..0c5b3d8 100644 --- a/signal.h +++ b/signal.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2009 Andre Noll + * Copyright (C) 2007-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ diff --git a/snap.c b/snap.c index 1ff5fd7..41dc329 100644 --- a/snap.c +++ b/snap.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2009 Andre Noll + * Copyright (C) 2008-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ diff --git a/snap.h b/snap.h index f0ffd45..b9659ae 100644 --- a/snap.h +++ b/snap.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2009 Andre Noll + * Copyright (C) 2008-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ diff --git a/string.c b/string.c index 60c53d5..d370a81 100644 --- a/string.c +++ b/string.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2009 Andre Noll + * Copyright (C) 2004-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ diff --git a/time.c b/time.c index 0ad974b..3cc1ad6 100644 --- a/time.c +++ b/time.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2009 Andre Noll + * Copyright (C) 2005-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */