├── README.md └── run.sh /README.md: -------------------------------------------------------------------------------- 1 | # Dockup 2 | 3 | This repo is deprecated: we are not going to maintain it anymore. 4 | 5 | You can visit [Docker Store](https://store.docker.com) to explore similar images. 6 | 7 | To access the last commit of the code, please switch to [master branch](https://github.com/tutumcloud/dockup/tree/master). 8 | -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [[ "$RESTORE" == "true" ]]; then 4 | ./restore.sh 5 | else 6 | ./backup.sh 7 | fi 8 | 9 | if [ -n "$CRON_TIME" ]; then 10 | echo "${CRON_TIME} /backup.sh >> /dockup.log 2>&1" > /crontab.conf 11 | crontab /crontab.conf 12 | echo "=> Running dockup backups as a cronjob for ${CRON_TIME}" 13 | exec cron -f 14 | fi 15 | --------------------------------------------------------------------------------