Skip to content

Commit

Permalink
Add support for restoring archives in xz format.
Browse files Browse the repository at this point in the history
Signed-off-by: Wade Barnes <wade@neoterictech.ca>
  • Loading branch information
WadeBarnes committed Aug 28, 2024
1 parent 2b59570 commit efc5741
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
FROM bcgovimages/von-image:node-1.12-6
ARG user=indy
ARG LOG_LEVEL=info
ARG RUST_LOG=warning
ENV LOG_LEVEL=$LOG_LEVEL
ENV RUST_LOG=$RUST_LOG

USER root
RUN apt-get update -y && \
apt-get install -y \
xz-utils
USER $user

ADD config ./config
ADD server/requirements.txt server/

Expand Down
2 changes: 1 addition & 1 deletion manage
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ function restoreArchive()
--user root \
-v ${archiveVolumeMount}:/${ROOT_BACKUP_DIR} \
-v ${volume}:/target_volume von-network-base \
tar --same-owner -xzvpf ${archiveToRestore} -C /target_volume/ ${tarOptions}
tar --same-owner -xvpf ${archiveToRestore} -C /target_volume/ ${tarOptions}
else
echo -e \\n"Restore aborted."
fi
Expand Down

0 comments on commit efc5741

Please sign in to comment.