Sign inSign up

kriskbx/docker-imap-backup

By kriskbx

•Updated over 3 years ago

📩 Simple Docker image that runs imap-backup with crontab

Image
2

10K+

kriskbx/docker-imap-backup repository overview

⁠docker imap backup

Simple Docker image that runs imap-backup with crontab.

⁠How to use

Checkout the documentation at joeyates/imap-backup⁠ and create a config.json configuration file.

Pass the configuration into the container via a environment variable:

docker run \
    -e 'CONFIG={"accounts":[]}' \
    kriskbx/docker-imap-backup

… or via volume (might only work on linux because file systems and permissions 🤷):

docker run \
    -v /host/path/to/config.json:/root/.imap-backup/config.json:ro \
    kriskbx/docker-imap-backup

Make sure you mount the directories your emails will be backuped to as volumes as well.

If you want to change the default hourly interval, pass an environment variable:

docker run \
    -e 'SCHEDULE=* * * * *' \
    kriskbx/docker-imap-backup

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:1f3e56f5b…

Size

358 MB

Last updated

over 3 years ago

docker pull kriskbx/docker-imap-backup