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

Allow passing -L option to tarsnap in -c only #71

Open
iphoting opened this issue Feb 16, 2024 · 0 comments
Open

Allow passing -L option to tarsnap in -c only #71

iphoting opened this issue Feb 16, 2024 · 0 comments

Comments

@iphoting
Copy link

In wanting to follow and archive symbolic links, I need to specify -L to tarsnap -c.
To do so with tarsnapper, I used the following option: -o L.

However, this leads to an error:

tarsnap execution failed:
Traceback (most recent call last):
 File "/usr/local/lib/python3.9/dist-packages/tarsnapper/script.py", line 546, in main
   command.run(job)
 File "/usr/local/lib/python3.9/dist-packages/tarsnapper/script.py", line 402, in run
   self.expire(job)
 File "/usr/local/lib/python3.9/dist-packages/tarsnapper/script.py", line 321, in expire
   self.backend.expire(job)
 File "/usr/local/lib/python3.9/dist-packages/tarsnapper/script.py", line 181, in expire
   backups = self.get_backups(job)
 File "/usr/local/lib/python3.9/dist-packages/tarsnapper/script.py", line 145, in get_backups
   for backup_path in self.get_archives():
 File "/usr/local/lib/python3.9/dist-packages/tarsnapper/script.py", line 120, in get_archives
   response = StringIO(self.call('--list-archives'))
 File "/usr/local/lib/python3.9/dist-packages/tarsnapper/script.py", line 68, in call
   return self._exec_tarsnap(call_with)
 File "/usr/local/lib/python3.9/dist-packages/tarsnapper/script.py", line 88, in _exec_tarsnap
   raise TarsnapError("tarsnap failed with status {0}:{1}{2}".format(
tarsnapper.script.TarsnapError: tarsnap failed with status 1:
tarsnap: Option -L is not permitted in mode --list-archives

It also does not look like tarsnap.conf supports specifying the -L option.
Is there any way to do this?

@iphoting iphoting changed the title Allow passing options to tarsnap in -c only Allow passing -L option to tarsnap in -c only Feb 16, 2024
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