Rodrigo Campos [Wed, 2 Feb 2011 14:24:30 +0000 (11:24 -0300)]
Avoid creation of dangling symlinks
If rsync fails, possibly the new directory does not exist, so we should
not create the symlink. Because if we create it, the next backup would
not be incremental, because the --link-dest option does not point to an
existing directory.
This patch fixes this by checking the return code of rsync and only
creates the symlink if rsync exits successful or with error 24 ("Partial
transfer due to vanished source files") which is somewhat expected.
Rodrigo Campos [Thu, 25 Nov 2010 14:07:25 +0000 (11:07 -0300)]
Dont use by default rsync --delete option
As we are creating the directory empty (now rsync creates the directory,
cp is not used anymore to create hardlinks) it shouldn't be any weird
files there and we shouldn't need --delete.
Rodrigo Campos [Thu, 18 Nov 2010 15:42:33 +0000 (12:42 -0300)]
Create necessary files for new hosts
When a new host is added to the backup, we need to create the top-level
directory for its backup. Also, don't issue an error when the "current"
symlink can't be removed (because it doesn't exist yet).
Martin Marrese [Thu, 26 Aug 2010 22:44:14 +0000 (19:44 -0300)]
Make pinging hosts configurable
Add a new configuration option to choose whether remote hosts should be
pinged to check if they are up or not. Disabling this option is useful if
your remote hosts don't reply to ICMP pings for security reasons.