Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFTP backup is buggy (fixable) #220

Open
adi- opened this issue Oct 9, 2016 · 3 comments
Open

SFTP backup is buggy (fixable) #220

adi- opened this issue Oct 9, 2016 · 3 comments
Assignees
Labels
bug Bugs that need to get fixed. docs storage/general

Comments

@adi-
Copy link
Contributor

adi- commented Oct 9, 2016

I had problems with backing up data to SFTP as mentioned here: jschneier/django-storages#199

But, playing with the settings and some input from @jbittel I finally make it work!

Here are working settings:

DBBACKUP_STORAGE = 'storages.backends.sftpstorage.SFTPStorage'
DBBACKUP_STORAGE_OPTIONS = {
    'host': '___hostname___',
    'params': {
        # 'hostname': '___hostname___',
        'username': '___username___',
        'password': '___password___',
    },
    'known_host_file': 'known_hosts',
    'root_path': '___root_path___',
}

One thing very important is, you need to get rid of hostname param from params. Otherwise you will get connect() got multiple values for argument 'hostname'.

One thing that must be mentioned in docs is that known_host_file must be present with 644 rights.

@ZuluPro
Copy link
Contributor

ZuluPro commented Oct 9, 2016

@adi-
Ok, thank you very much for this debugging and explanation.
We'll make improvement from that.

@ZuluPro ZuluPro self-assigned this Nov 29, 2016
@ZuluPro ZuluPro added backup bug Bugs that need to get fixed. storage/general labels Nov 29, 2016
@jmtimko5
Copy link

I have read through the several issues on this matter and attempted to do this. I am still getting the same error that was described.
self._system_host_keys = HostKeys() RecursionError: maximum recursion depth exceeded
Can you not specify ~/.ssh/known_hosts in the known_host_file parameter?

@tausiftt5238
Copy link

I still can't make it work, in my case, there's no error. The code is just stuck at 'Writing file to default-home-2018-11-26-184715.psql' for hours. Any fixes?

@jonathan-s jonathan-s added docs and removed backup labels Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs that need to get fixed. docs storage/general
Projects
None yet
Development

No branches or pull requests

5 participants