From 2f5ecfa49f35735f1e0c3c8e3147be03db7ad663 Mon Sep 17 00:00:00 2001 From: Mika Koivisto Date: Fri, 4 Mar 2016 10:42:32 +0200 Subject: [PATCH] Make curl create directories on FTP --- bin/tartarus | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tartarus b/bin/tartarus index 1f067bd..fd6b91b 100755 --- a/bin/tartarus +++ b/bin/tartarus @@ -708,7 +708,7 @@ case "$STORAGE_METHOD" in local FILE=$(constructFilename) local URL="$PROTO://$STORAGE_FTP_SERVER/$STORAGE_FTP_DIR/$FILE" debug "Uploading backup to $URL..." - curl $OPTS $CURL_OPTIONS --upload-file - "$URL" + curl $OPTS $CURL_OPTIONS --ftp-create-dirs --upload-file - "$URL" } ;; FILE)