Skip to content

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

@iphoting

Description

@iphoting

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions