Run arbitrary Borg commands with new "borgmatic borg" action (#425).
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-06-17 20:41:44 -07:00
parent b37dd1a79e
commit cf8882f2bc
13 changed files with 438 additions and 132 deletions

View File

@@ -3,7 +3,7 @@ FROM python:3.8-alpine3.12 as borgmatic
COPY . /app
RUN pip install --no-cache /app && generate-borgmatic-config && chmod +r /etc/borgmatic/config.yaml
RUN borgmatic --help > /command-line.txt \
&& for action in init prune create check extract mount umount restore list info; do \
&& for action in init prune create check extract export-tar mount umount restore list info borg; do \
echo -e "\n--------------------------------------------------------------------------------\n" >> /command-line.txt \
&& borgmatic "$action" --help >> /command-line.txt; done