An open API service indexing awesome lists of open source software.

https://github.com/mpepping/docker-imaptar


https://github.com/mpepping/docker-imaptar

backup docker imap imaps tar

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# imaptar

[imaptar](https://github.com/XS4ALL/imaptar/) is a utility to dump an entire IMAP-mailbox, INBOX and all folders, in maildir format to a tar file.

## Usage

```bash
Usage: imaptar

Flags:
-s, --server IMAPS server name
-u, --user username
-t, --tar tar output filename

Optional flags:
-p, --port IMAPS server port (default 993)
-P, --pass password
-E, --envpass VAR get password from environment var $VAR
-z, --gzip compress the output
```

If you do not supply the -P or -E option, you will be prompted
for the password.

## Example

To run `imaptar` and write a `.tgz` file to a local backup directory:

```bash
export IMAPPASS="foo"
docker run -ti --rm -e IMAPPASS -v $PWD/backup:/backup mpepping/imaptar \
-s imap.xs4all.nl -u myuser -E IMAPPASS -z -t /backup/maildir.tar.gz
```

## BUGS

Only works on IMAP servers where "/" is the folder seperator.

## References

*
*
*