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

Not running restic forget when stdin_filename defined. #105

Open
Literis8 opened this issue Dec 19, 2022 · 0 comments
Open

Not running restic forget when stdin_filename defined. #105

Literis8 opened this issue Dec 19, 2022 · 0 comments

Comments

@Literis8
Copy link

When using stdin_filename in host's variables restic_script_Linux.j2 generated restic forget comand like:

...
/usr/bin/restic forget --path otk_db_stage.bson  \
   \
  --keep-daily 7 \
  --keep-weekly 5 \
  --keep-monthly 12 \
  --keep-yearly 5 \
   \
   --prune | tee /opt/restic/log/otk-db-stage-forget-output.log
...

in restic forget --path must be absolute path, so restic_script_Linux.j2 must generate config like:

...
/usr/bin/restic forget --path /otk_db_stage.bson  \
   \
  --keep-daily 7 \
  --keep-weekly 5 \
  --keep-monthly 12 \
  --keep-yearly 5 \
   \
   --prune | tee /opt/restic/log/otk-db-stage-forget-output.log
...

I think in templates/restic_script_Linux.j2 in line 64 must be:

  {% if repo.src is defined and repo.src != None and (repo.src|length>0)  %}{{ repo.src }}{% else %}/{{ repo.stdin_filename }}{% endif %}
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