Need more coffee.
This commit is contained in:
parent
46dc8c171c
commit
f5d1d86a3a
12
main.sh
12
main.sh
@ -106,7 +106,7 @@ fi
|
|||||||
}
|
}
|
||||||
|
|
||||||
function push {
|
function push {
|
||||||
if [ "rsync_push" = true ]
|
if [ "$rsync_push" = true ]
|
||||||
then
|
then
|
||||||
#Push - Dockerized
|
#Push - Dockerized
|
||||||
if [ "push_clean" = true ]
|
if [ "push_clean" = true ]
|
||||||
@ -117,9 +117,9 @@ function push {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function dockerbackup {
|
function dockerbackup {
|
||||||
if [ "docker_enabled" = true]
|
if [ "$docker_enabled" = true]
|
||||||
then
|
then
|
||||||
if [ "docker_images" = true]
|
if [ "$docker_images" = true]
|
||||||
then
|
then
|
||||||
echo "Backing up Docker images..." >&2
|
echo "Backing up Docker images..." >&2
|
||||||
for i in `docker inspect --format='{{.Name}}' $(docker ps -q) | cut -f2 -d\/`
|
for i in `docker inspect --format='{{.Name}}' $(docker ps -q) | cut -f2 -d\/`
|
||||||
@ -132,7 +132,7 @@ function dockerbackup {
|
|||||||
echo "Finished" >&2
|
echo "Finished" >&2
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if [ "docker_volumes" = true ]
|
if [ "$docker_volumes" = true ]
|
||||||
then
|
then
|
||||||
echo "Backing up Docker volumes..." >&2
|
echo "Backing up Docker volumes..." >&2
|
||||||
for i in `docker inspect --format='{{.Name}}' $(docker ps -q) | cut -f2 -d\/`
|
for i in `docker inspect --format='{{.Name}}' $(docker ps -q) | cut -f2 -d\/`
|
||||||
@ -148,7 +148,7 @@ function dockerbackup {
|
|||||||
echo "Finished" >&2
|
echo "Finished" >&2
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if [ "docker_data" = true ]
|
if [ "$docker_data" = true ]
|
||||||
then
|
then
|
||||||
echo "Backing up container information..." >&2
|
echo "Backing up container information..." >&2
|
||||||
for i in `docker inspect --format='{{.Name}}' $(docker ps -q) | cut -f2 -d\/`
|
for i in `docker inspect --format='{{.Name}}' $(docker ps -q) | cut -f2 -d\/`
|
||||||
@ -164,7 +164,7 @@ function dockerbackup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function runbackup {
|
function runbackup {
|
||||||
if [ "enabled" = true ]
|
if [ "$enabled" = true ]
|
||||||
then
|
then
|
||||||
# step 1 : create directory
|
# step 1 : create directory
|
||||||
makedir
|
makedir
|
||||||
|
Loading…
Reference in New Issue
Block a user