Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backup/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM rackspace/rack:1.1.1

RUN apk add --update --no-cache bash
RUN apk add --update --no-cache pigz

COPY files/bin/ /usr/bin/

Expand Down
4 changes: 2 additions & 2 deletions backup/files/bin/backup
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ usage () {
echo " -h, --help Show help information"
echo " -s, --source <path> Path to source directory"
echo " --stdout Use stdout instead of Cloud Files"
echo " -z, --zip Use gzip to compress archive"
echo " -z, --zip Use pigz to output gzip compressed archive"
echo " "
}

Expand Down Expand Up @@ -111,7 +111,7 @@ if ! ${STDOUT}; then
fi

if ${ZIP}; then
tar -czf - -C ${SOURCE} . | output_archive
tar -cf - -C ${SOURCE} . | pigz -c | output_archive
else
tar -cf - -C ${SOURCE} . | output_archive
fi
Expand Down
4 changes: 2 additions & 2 deletions backup/files/bin/restore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ usage () {
echo " -h, --help Show help information"
echo " -o, --object <name> Name of archive object in a container"
echo " --stdin Use stdin instead of Cloud Files"
echo " -z, --zip Use gzip to uncompress archive"
echo " -z, --zip Use pigz to uncompress gzip archive"
echo " "
}

Expand Down Expand Up @@ -84,7 +84,7 @@ fi

if ${ZIP}; then
echo "Reading and unzipping archive..."
get_archive | tar -xzf - -C ${DESTINATION}
get_archive | unpigz -c | tar -xf - -C ${DESTINATION}
else
echo "Reading and extracting archive..."
get_archive | tar -xf - -C ${DESTINATION}
Expand Down