Blob Blame History Raw
Adds support for --sftp-command option - thanks to intrigeri <intrigeri@boum.org>.

--- duplicity-0.4.2/src/commandline.py		2006-02-03 04:44:31.000000000 +0100
+++ duplicity-0.4.2/src/commandline.py.sftp	2006-12-20 14:15:38.000000000 +0100
@@ -50,7 +50,7 @@
 		  "list-current-files", "no-encryption",
 		  "no-print-statistics", "null-separator",
 		  "remove-older-than=", "restore-dir=", "restore-time=",
-		  "scp-command=", "short-filenames", "sign-key=",
+		  "scp-command=", "sftp-command=", "short-filenames", "sign-key=",
 		  "ssh-command=", "verbosity=", "verify", "version"])
 	except getopt.error, e:
 		command_line_error("%s" % (str(e),))
@@ -95,6 +95,7 @@
 		elif opt == "-t" or opt == "--restore-time":
 			globals.restore_time = dup_time.genstrtotime(arg)
 		elif opt == "--scp-command": backends.scp_command = arg
+		elif opt == "--sftp-command": backends.sftp_command = arg
 		elif opt == "--short-filenames": globals.short_filenames = 1
 		elif opt == "--sign-key": set_sign_key(arg)
 		elif opt == "--ssh-command": backends.ssh_command = arg
--- duplicity-0.4.2/duplicity.1			2006-02-03 04:44:31.000000000 +0100
+++ duplicity-0.4.2/duplicity.1.sftp		2006-12-20 14:24:58.000000000 +0100
@@ -271,6 +271,13 @@
 give extra arguments to scp, for instance "--scp-command \'scp -i
 foo\'".  The default is "scp".
 .TP
+.BI "--sftp-command " command
+This option only matters when using the ssh/scp backend.  There
+.I command
+will be used instead of sftp for listing and deleting files.  The
+default is "sftp".  For more information see
+.BR --scp-command .
+.TP
 .BI "--sign-key " key
 This option can be used when backing up or restoring.  When backing
 up, all backup files will be signed with keyid