Skip to content
Snippets Groups Projects
Commit 1790b533 authored by intrigeri's avatar intrigeri
Browse files

duplicity: for local backups, check that the destination directory exists.

Thanks to ulrich for the preliminary patch.

Closes Redmine#4049.
parent 3d36ded8
No related branches found
No related tags found
No related merge requests found
...@@ -45,3 +45,4 @@ Yuval Kogman <nothingmuch@woobling.org> -- RackSpace's CloudFiles support for du ...@@ -45,3 +45,4 @@ Yuval Kogman <nothingmuch@woobling.org> -- RackSpace's CloudFiles support for du
exobuzz - mysql bugfixes exobuzz - mysql bugfixes
Glennie Vignarajah <glennie@glennie.fr> -- mysql bugfix Glennie Vignarajah <glennie@glennie.fr> -- mysql bugfix
ddpaul <paul@reic.ru> -- rsync bugfix ddpaul <paul@reic.ru> -- rsync bugfix
ulrich -- duplicity bugfix preliminary patch
version 1.1 -- UNRELEASED
handler changes
dup:
. For local backups, check that the destination directory exists.
Thanks to ulrich for the preliminary patch. (Redmine#4049)
version 1.0.1 -- June 29, 2012 version 1.0.1 -- June 29, 2012
handler changes handler changes
rsync: rsync:
......
...@@ -55,6 +55,13 @@ fi ...@@ -55,6 +55,13 @@ fi
if [ "`echo $desturl | @AWK@ -F ':' '{print $1}'`" == "ftp" ]; then if [ "`echo $desturl | @AWK@ -F ':' '{print $1}'`" == "ftp" ]; then
[ -n "$ftp_password" ] || fatal "ftp_password must be set for FTP backups." [ -n "$ftp_password" ] || fatal "ftp_password must be set for FTP backups."
fi fi
if [ "`echo $desturl | @AWK@ -F ':' '{print $1}'`" == "file" ]; then
if [ ! -e "`echo $desturl | @AWK@ -F '://' '{print $2}'`" ]; then
fatal "The destination directory ($desturl) does not exist."
elif [ ! -d "`echo $desturl | @AWK@ -F '://' '{print $2}'`" ]; then
fatal "The destination ($desturl) is not a directory."
fi
fi
### VServers ### VServers
# If vservers are configured, check that the ones listed in $vsnames do exist. # If vservers are configured, check that the ones listed in $vsnames do exist.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment