Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kriskbx/docker-imap-backup
📩 Simple Docker image that runs imap-backup with crontab
https://github.com/kriskbx/docker-imap-backup
Last synced: 5 days ago
JSON representation
📩 Simple Docker image that runs imap-backup with crontab
- Host: GitHub
- URL: https://github.com/kriskbx/docker-imap-backup
- Owner: kriskbx
- License: mit
- Created: 2020-05-01T09:42:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-14T15:05:38.000Z (almost 2 years ago)
- Last Synced: 2024-11-01T07:51:48.433Z (12 days ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 13
- Watchers: 2
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker imap backup
> Simple Docker image that runs imap-backup with crontab.
## How to use
Checkout the documentation at [joeyates/imap-backup](https://github.com/joeyates/imap-backup#configuration-file) and create a config.json configuration file.
Pass the configuration into the container via a environment variable:
```bash
docker run \
-e 'CONFIG={"accounts":[]}' \
kriskbx/docker-imap-backup
```… or via volume (might only work on linux because file systems and permissions 🤷):
```bash
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:
```bash
docker run \
-e 'SCHEDULE=* * * * *' \
kriskbx/docker-imap-backup
```If you want to schedule the job from your host/orchestrator, set the command to use the backup script:
```bash
docker run kriskbx/docker-imap-backup /usr/local/bin/imap-backup.sh
```## License
MIT