A container which creates an archive of a directory, compresses, encrypts, and sends off to s3
2.2K
Taken from gregory90/file-backup-s3, this image has the necessary utilties for you to perform continuous backup to S3. The idea is here is to provide an easy ready-to-go way to archive a directory, encrypt it, and push it to Amazon s3.
Without going through and providing all the required env vars, here is a quick docker run line for getting up and running with this container.
docker run -v DIRECTORY_TO_BACKUP:/data:ro inanimate/s3-archive
AWS_ACCESS_KEY_ID - AWS S3 access key.AWS_SECRET_ACCESS_KEY - AWS S3 secret key.BUCKET - AWS S3 bucket (and folder) to store the backup. i.e. s3://herpderpbucket/folderSYMMETRIC_PASSPHRASE - The gpg symmetric passphrase to use to encrypt your file.DATADIR - The data directory inside the container to archive. (default: /data)TIMEOUT - How often perform backup, in seconds. (default: 86400)NAME_PREFIX - A prefix in front of the date i.e. jira-data-dir-backup (default: backup-archive)GPG_COMPRESSION_LEVEL - The compression level for gpg to use (0-9). (default: 0; not recommended since we're using xz)XZ_COMPRESSION_LEVEL - The compression level for xz (lzma2) to use (0-9). (default: 9; this is the best compression level)CIPHER_ALGO - The cipher for gpg to utilize when encrypting your archive. (default: aes256)EXTENSION - The extension to use for the backup file i.e. tgz,tar.xz,bz2 (default: .tar.xz.gpg)AWSCLI_OPTIONS - Provide some arguments to awscli (default: --sse; enabling server side encryption) See here for possibilities.TAR_EXCLUDE - Include --exclude statements for content you don't want
included in the backup.All other aws-cli variables are also supported.
Restorability has not yet been completed. It is on the roadmap!
Content type
Image
Digest
sha256:b839b1a16…
Size
93.2 MB
Last updated
12 months ago
docker pull inanimate/s3-archive