Skip to content

Commit

Permalink
Merge pull request #318 from WadeBarnes/main
Browse files Browse the repository at this point in the history
Add support for restoring archives in xz format.
  • Loading branch information
swcurran authored Aug 28, 2024
2 parents 2b59570 + efc5741 commit e32d173
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 e32d173

Please sign in to comment.