Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Commit

Permalink
Moved MongoDB dumps from container to here, renamed make config-oc to…
Browse files Browse the repository at this point in the history
… config-backups
  • Loading branch information
DerekRoberts committed Jul 29, 2015
1 parent 0c04cb4 commit cca31e8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ config-bash:
fi


config-oc:
# Add repository and install owncloud cmd client
config-backups:
# Add repository, install owncloud cmd client and run cronjobs for infrastructure and MongoDB data
#
@ echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/xUbuntu_14.04/ /' \
| sudo tee /etc/apt/sources.list.d/owncloud-client.list
Expand Down Expand Up @@ -351,10 +351,17 @@ config-oc:
@ if((! sudo test -e /var/spool/cron/crontabs/root )||(! sudo grep --quiet 'oc_backup.sh' /var/spool/cron/crontabs/root )); \
then \
( \
echo ''; \
echo ''; \
echo '# Backup to ownCloud every 30 minutes'; \
echo '#'; \
echo '0,30 * * * * $\${PATH_HOST}/oc_backup.sh'; \
echo ''; \
echo ''; \
echo '# Dump MongoDB nightly for UVic backup'; \
echo '#'; \
echo '15 1 * * * sudo docker exec hubdb /app/mongodb_dump.sh'; \
echo ''; \
) | sudo tee -a /var/spool/cron/crontabs/root; \
fi

Expand Down

0 comments on commit cca31e8

Please sign in to comment.