2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 12:55:18 +00:00

Merge pull request #3718 from MichaelEischer/sftp-docs-fix

doc: sftp with password actually works
This commit is contained in:
Alexander Neumann 2022-04-23 20:27:27 +02:00 committed by GitHub
commit e4780d3956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,9 +67,9 @@ SFTP
**** ****
In order to backup data via SFTP, you must first set up a server with In order to backup data via SFTP, you must first set up a server with
SSH and let it know your public key. Passwordless login is really SSH and let it know your public key. Passwordless login is important
important since restic fails to connect to the repository if the server since automatic backups are not possible if the server prompts for
prompts for credentials. credentials.
Once the server is configured, the setup of the SFTP repository can Once the server is configured, the setup of the SFTP repository can
simply be achieved by changing the URL scheme in the ``init`` command: simply be achieved by changing the URL scheme in the ``init`` command:
@ -148,7 +148,7 @@ SFTP connection, you can specify the command to be run with the option
.. note:: Please be aware that sftp servers close connections when no data is .. note:: Please be aware that sftp servers close connections when no data is
received by the client. This can happen when restic is processing huge received by the client. This can happen when restic is processing huge
amounts of unchanged data. To avoid this issue add the following lines amounts of unchanged data. To avoid this issue add the following lines
to the clients .ssh/config file: to the client's .ssh/config file:
:: ::