aboutsummaryrefslogtreecommitdiff
path: root/handlers/rsync.in
AgeCommit message (Collapse)Author
2014-04-17Use ssh config option (#4379)bug/4379Silvio Rhatto
2013-10-26Solve quoting issue with "su" (debian #683731) (upstream #4019)bug/4019Silvio Rhatto
A fix for debian #677410 on commit 29dcdbae introduces a new issue on wheezy machines where some rsync_options gets out of the rsync command quotes when invoked by su. As reported, running backupninja through `bash -x` shows that the `--delete` option from the rsync command is not included in the single quote for the `su -c` command: nice -n 0 su -c '/usr/bin/rsync -av' --delete '--recursive --delete-excluded //home/ /tmp/test//home//' This patch attempt to solve that issue by using the intermediary variable $command.
2012-06-29Do not warn when rsync exits with status 0.intrigeri
2012-06-20Issue just warnings on non-fatal rsync errors (#3966)bug/3966Silvio Rhatto
2012-06-15Run rsync command-line through a shell, so that single-quotes around ↵intrigeri
excludes are interpreted (Closes: #677410) When --exclude 'something' is passed directly to rsync without going through a shell, rsync tries to match a file whose name contains single quotes, which is definitely not what we want it to do: exclude arguments protected with single quotes are meant to be passed to a shell.
2012-06-15rsync: stop passing $excludes as a single argument.intrigeri
2012-06-15rsync: generate excludes command-line snippet the same way as the duplicity ↵intrigeri
handler does. The latter has a robust history wrt. dealing with excludes / glob / quoting etc., let's use that instead of the shiny new sed-based way.
2012-05-15Updating pipefail branch so it can merge with master (#3892)bug/3892Silvio Rhatto
2012-05-14Always use explicit sed's -e.intrigeri
Hopefully this fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656968#31 and future incarnations of this class of bugs.
2012-05-12Changing pipefail just when it's really neededSilvio Rhatto
2012-05-13Merge remote-tracking branch 'sarava/bug/3721'intrigeri
2012-05-13Merge remote-tracking branch 'sarava/bug/3838'intrigeri
2012-05-13Merge remote-tracking branch 'sarava/bug/3840'intrigeri
2012-05-13Merge remote-tracking branch 'sarava/bug/3882'intrigeri
2012-05-10Fixing typos (#3868)bug/3868Silvio Rhatto
2012-05-10Set/restore pipefail to not mess with other scripts (#3892)Silvio Rhatto
2012-05-10Ensure that a non-zero rsync exit status is caught by our handler (#3892)Silvio Rhatto
2012-05-10Merge branches 'master' and 'bug/3840' into bug/3840bug/3840Silvio Rhatto
2012-05-10Removing duplicated locking support (#3838)Silvio Rhatto
2012-05-10Changing a 'fatal' to a 'warning' on rsync handler.bug/3721Silvio Rhatto
Using 'warning' and 'return' instead of a fatal at rotate_long if backuproot doesn't exist. Using a warning ensures that the backup action can process the other includes and not just exit.
2012-05-10Changing remaining 'exit' to 'fatal' at rsync handler (#3721)Silvio Rhatto
2012-04-13Trying additional quoting on excludes (upstream #3882)bug/3882Silvio Rhatto
2012-04-13Using @SED@ for #3882Silvio Rhatto
2012-04-12Quoting $exclude and $excludes and avoiding a for loop on $exclude to not ↵Silvio Rhatto
expand wildcards in beforehand (upstream #3882)
2012-04-12Validate created date on long_rotation to avoid too many arguments at ↵Silvio Rhatto
comparison (upstream #3868)
2012-04-12Quoting $starttime (upstream #3868)Silvio Rhatto
2012-02-28Rsync handler: use the backup start time and not the time the backup was ↵bug/debian/654192Silvio Rhatto
finished (Debian #654192)
2012-02-27Rsync handler: using more debug/warning instead of regular echo (upstream #3840)Silvio Rhatto
2012-02-26Fixing $rsync_options output when rsync is local (Issue #3001)Silvio Rhatto
2012-02-25Fix typos.intrigeri
2012-01-04Fixing escaping and debug message for remote metadata cleanup (#3727)Silvio Rhatto
2012-01-04Cleanup orphaned metadata (#3727)Silvio Rhatto
2012-01-01Abort on rsync error (#3692)Silvio Rhatto
2012-01-01Fixing metadata rotationSilvio Rhatto
2012-01-01Allow disabling rotation or setting 2 days as minimum for backup increments ↵Silvio Rhatto
in rsync short format (Issue #2107)
2012-01-01Removing 'exit 1'; using 'fatal' instead (Redmine#3721)Silvio Rhatto
2011-12-31Mangle rsync_options just after all other options were evaluated (#3702)Silvio Rhatto
2011-12-31Provide a default number of days for the rsync handlerSilvio Rhatto
2011-12-31Make numericids defaults to null (fixes #3691)Silvio Rhatto
2011-08-17Fixing $rsync_options output (Issue #3001)Silvio Rhatto
2011-08-17Fixing $rsync_options output when rsync is local (Issue #3001)Silvio Rhatto
2011-04-26Do arithmetic using bash rather than bc (Closes: #603173)intrigeri
2011-02-16Make units clearer (Closes Redmine bug #2737).intrigeri
2010-09-25Don't remove created metadata after rotation at rsyncSilvio Rhatto
2010-09-20Fixing long rotation at rsync handlerSilvio Rhatto
2010-09-02Removing rsync handler changelogSilvio Rhatto
2010-09-02Removing unneeded hostname and user from ssh_cmd_baseSilvio Rhatto
2010-09-01Changing 'info' to 'fatal' at rsync handler set_lockfile functionSilvio Rhatto
2010-08-25Rsync handler CHANGELOG updateSilvio Rhatto
2010-08-21Making sure that the pid on lockfile reffers to an rsync backup processSilvio Rhatto