Minimal adjustments
This commit is contained in:
parent
35255156bd
commit
1bff525466
4
main.sh
4
main.sh
@ -272,7 +272,7 @@ function dockerbackup {
|
|||||||
echo -n "$container_name - "
|
echo -n "$container_name - "
|
||||||
docker run --rm --userns=host \
|
docker run --rm --userns=host \
|
||||||
--volumes-from $container_name \
|
--volumes-from $container_name \
|
||||||
-v $backup_path:/backup \
|
-v $tmpdir/containers/$container_name:/backup \
|
||||||
-e TAR_OPTS="$tar_opts" \
|
-e TAR_OPTS="$tar_opts" \
|
||||||
piscue/docker-backup \
|
piscue/docker-backup \
|
||||||
backup "$container_name-volume.tar.xz"
|
backup "$container_name-volume.tar.xz"
|
||||||
@ -344,7 +344,7 @@ function runbackup {
|
|||||||
custombackup
|
custombackup
|
||||||
# archive data
|
# archive data
|
||||||
echo "Creating backup archive..." >&2
|
echo "Creating backup archive..." >&2
|
||||||
tar -czvf $backup_path/backify-$timestamp.tar.gz $tmpdir
|
tar -czvf $backup_path/backify-$timestamp.tar.gz $tmpdir >> /var/log/backify-compress.log
|
||||||
# push data to server
|
# push data to server
|
||||||
push
|
push
|
||||||
# remove temp files
|
# remove temp files
|
||||||
|
Loading…
Reference in New Issue
Block a user