You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered:
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:
Unfortunately, the script throws an error which I don't understand:
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
The text was updated successfully, but these errors were encountered: