mirror of
https://github.com/restic/restic.git
synced 2026-09-13 07:47:58 +00:00
doc: Add section about how to change the sftp port
Closes #895 Related to #785
This commit is contained in:
@@ -15,10 +15,9 @@ type Config struct {
|
||||
|
||||
// ParseConfig parses the string s and extracts the sftp config. The
|
||||
// supported configuration formats are sftp://user@host/directory
|
||||
// (with an optional port sftp://user@host:port/directory) and
|
||||
// sftp:user@host:directory. The directory will be path Cleaned and
|
||||
// can be an absolute path if it starts with a '/'
|
||||
// (e.g. sftp://user@host//absolute and sftp:user@host:/absolute).
|
||||
// and sftp:user@host:directory. The directory will be path Cleaned and can
|
||||
// be an absolute path if it starts with a '/' (e.g.
|
||||
// sftp://user@host//absolute and sftp:user@host:/absolute).
|
||||
func ParseConfig(s string) (interface{}, error) {
|
||||
var user, host, dir string
|
||||
switch {
|
||||
|
||||
Reference in New Issue
Block a user