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 <[email protected]>
  • Loading branch information
WadeBarnes committed Aug 28, 2024
1 parent 0b0ded0 commit eefd0c9
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,4 +1,11 @@
FROM bcgovimages/von-image:node-1.12-6
ARG user=indy

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

ENV LOG_LEVEL ${LOG_LEVEL:-info}
ENV RUST_LOG ${RUST_LOG:-warning}
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 eefd0c9

Please sign in to comment.