Compare commits

...

5 Commits

  1. 2
      d-gitea
  2. 2
      d-mysql
  3. 2
      d-nginx-charlesreid1
  4. 1
      utils-backup/daily_mysql.sh
  5. 1
      utils-backup/daily_wikifiles.sh
  6. 8
      utils-mw/backup_wikifiles.sh

2
d-gitea

@ -1 +1 @@
Subproject commit 0eff5027636ad54f0a4e0fc50a68c58fd5653364 Subproject commit f73c8c8258989a5eec6d119264964d20884a697a

2
d-mysql

@ -1 +1 @@
Subproject commit 4bd88e74c169bfe62a1b3709b3b65a6405c7de24 Subproject commit 3f8949139e8827bbc61d3cf6ecd4001a6bd6edd2

2
d-nginx-charlesreid1

@ -1 +1 @@
Subproject commit d8ee0555edac3c242a4a0ee98556527b01bb6b27 Subproject commit ddd33967f5366c6c4be45c6892fb053760e755aa

1
utils-backup/daily_mysql.sh

@ -31,3 +31,4 @@ set +x
echo "Done" | tee ${log_target} echo "Done" | tee ${log_target}
cat ${log_target}

1
utils-backup/daily_wikifiles.sh

@ -30,3 +30,4 @@ set +x
echo "Done" | tee ${log_target} echo "Done" | tee ${log_target}
cat ${log_target}

8
utils-mw/backup_wikifiles.sh

@ -2,7 +2,6 @@
# #
# Create a tar file containing wiki files # Create a tar file containing wiki files
# from the stormy_mw container. # from the stormy_mw container.
set -x
function usage { function usage {
echo "" echo ""
@ -41,16 +40,19 @@ then
else else
DOCKER="docker exec -it" DOCKER="docker exec -it"
fi fi
DOCKERCP="docker cp"
set -x
# zip to temp dir inside container # zip to temp dir inside container
${DOCKER} ${NAME} tar czf /tmp/${TAR} /var/www/html/images ${DOCKER} ${NAME} tar czf /tmp/${TAR} /var/www/html/images
# copy from container to target $1 # copy from container to target $1
mkdir -p $(dirname $TARGET) mkdir -p $(dirname $1)
${DOCKER} ${NAME} cp ${NAME}:/tmp/${TAR} $1 ${DOCKERCP} ${NAME}:/tmp/${TAR} $1
# clean up container # clean up container
${DOCKER} ${NAME} rm /tmp/${TAR} ${DOCKER} ${NAME} rm /tmp/${TAR}
set +x
else else
usage usage

Loading…
Cancel
Save