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

SSH remote directory not accessible #15

Open
horkko opened this issue Dec 3, 2018 · 0 comments
Open

SSH remote directory not accessible #15

horkko opened this issue Dec 3, 2018 · 0 comments

Comments

@horkko
Copy link

horkko commented Dec 3, 2018

Hi,

I've just discovered this great tool and tested it on a local directory. As said in the documentation, rotate-backups handles remote directory over SSH.
I've tried it creating a new configuration file as follow:

[ssh.cluster023.x.x.x:/backups]
ssh-user=example
daily=1
weekly=7
monthly=4
yearly=12

Unfortunately, the script throws an error which I don't understand:

 rotate-backups  --dry-run -y 2 -m 12 -w 8 -p -d 8  ssh.cluter023.x.x.x:/bakcups/ 2>&1
2018-12-03 17:20:19 local rotate_backups.cli[24974] INFO Performing a dry run (because of --dry-run option) ..
2018-12-03 17:20:19 local rotate_backups[24974] INFO Scanning ssh.cluter023.x.x.x:/backups for backups ..
Traceback (most recent call last):
  File "/Users/tuco/src/workspace/rotate-backups/bin/rotate-backups", line 11, in <module>
    load_entry_point('rotate-backups==6.0', 'console_scripts', 'rotate-backups')()
  File "/Users/tuco/src/workspace/rotate-backups/lib/python2.7/site-packages/rotate_backups/cli.py", line 303, in main
    program.rotate_backups(location)
  File "/Users/tuco/src/workspace/rotate-backups/lib/python2.7/site-packages/rotate_backups/__init__.py", line 467, in rotate_backups
    sorted_backups = self.collect_backups(location)
  File "/Users/tuco/src/workspace/rotate-backups/lib/python2.7/site-packages/rotate_backups/__init__.py", line 559, in collect_backups
    location.ensure_readable()
  File "/Users/tuco/src/workspace/rotate-backups/lib/python2.7/site-packages/rotate_backups/__init__.py", line 748, in ensure_readable
    self.ensure_exists()
  File "/Users/tuco/src/workspace/rotate-backups/lib/python2.7/site-packages/rotate_backups/__init__.py", line 744, in ensure_exists
    """, location=self))
ValueError: The directory ssh.cluter023.x.x.x:/backups/ isn't accessible, most likely because it doesn't exist or because of permissions. If you're sure the directory exists you can use the --use-sudo option.

Is there something misconfigured of I did wrong??
For info, the hostname I try to connect to starts with ssh could it be the problem?

Thanks for your reply

Emmanuel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant