From 250a4011c4a91c3430b7a53e19c693079c09b48d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 8 Dec 2020 09:18:12 -0600 Subject: [PATCH] Adding data to push info to test env --- rebuild-test.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 rebuild-test.sh diff --git a/rebuild-test.sh b/rebuild-test.sh new file mode 100755 index 0000000..6eb0ab8 --- /dev/null +++ b/rebuild-test.sh @@ -0,0 +1,13 @@ +#!/bin/bash +cd /var/docker/config +rm -f dockerbackup.tar +find . -name "*.jar" -exec tar -rvf dockerbackup.tar {} \; +find . -name "*.properties" -exec tar -rvf dockerbackup.tar {} \; +find . -name "*.pem" -exec tar -rvf dockerbackup.tar {} \; +find . -name "*.cfg" -exec tar -rvf dockerbackup.tar {} \; +find . -name "*.json" -exec tar -rvf dockerbackup.tar {} \; +find . -name "passwd" -exec tar -rvf dockerbackup.tar {} \; +find . -name "shadow" -exec tar -rvf dockerbackup.tar {} \; +find . -name docker-compose.yml -exec tar -rvf dockerbackup.tar {} \; +scp dockerbackup.tar root@10.0.2.41:/var/docker/ +ssh root@10.0.2.41 rebuild-env.sh