All Projects → istepanov → docker-backup-to-s3

istepanov / docker-backup-to-s3

Licence: MIT License
Docker container that periodically backups files to Amazon S3 using s3cmd and cron

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to docker-backup-to-s3

Mysqlbkup
Lightweight MySQL backup script in BASH
Stars: ✭ 129 (+4.03%)
Mutual labels:  backup, cron
pgsql-backup
PostgreSQL Backup Script. Ported from AutoMySQLBackup.
Stars: ✭ 24 (-80.65%)
Mutual labels:  backup, cron
Git S3 Push
Deploy your git repo to an S3 bucket
Stars: ✭ 182 (+46.77%)
Mutual labels:  backup, s3-bucket
S3cmd
Official s3cmd repo -- Command line tool for managing Amazon S3 and CloudFront services
Stars: ✭ 3,767 (+2937.9%)
Mutual labels:  backup, s3cmd
Automation-using-Shell-Scripts
Development Automation using Shell Scripting.
Stars: ✭ 41 (-66.94%)
Mutual labels:  backup, cron
Roam To Git
Automatic RoamResearch backup to Git
Stars: ✭ 489 (+294.35%)
Mutual labels:  backup, cron
VestaCP-Sync-Backups-To-Mega
VestaCP: uploading backups to the MEGA cloud
Stars: ✭ 17 (-86.29%)
Mutual labels:  backup, cron
butdr
Backup to Cloud( Google Drive, Dropbox ... ) use rclone
Stars: ✭ 49 (-60.48%)
Mutual labels:  backup, cron
btrfs-backup
A simple, flexible script for versioned backups using btrfs and rsync
Stars: ✭ 59 (-52.42%)
Mutual labels:  backup, cron
awesome-storage
A curated list of storage open source tools. Backups, redundancy, sharing, distribution, encryption, etc.
Stars: ✭ 324 (+161.29%)
Mutual labels:  backup, s3-bucket
radio
Redundant Array of Distributed Independent Objectstores in short RADIO performs synchronous mirroring, erasure coding across multiple object stores
Stars: ✭ 25 (-79.84%)
Mutual labels:  backup, s3-bucket
emsm
A lightweight, easy to extend minecraft server manager.
Stars: ✭ 72 (-41.94%)
Mutual labels:  backup, cron
Restic Systemd Automatic Backup
My restic backup solution using Backblaze B2 storage, systemd timers (or cron) and email notifications on failure.
Stars: ✭ 314 (+153.23%)
Mutual labels:  backup, cron
Bash Toolkit
Este proyecto esá destinado a ayudar a los sysadmin
Stars: ✭ 13 (-89.52%)
Mutual labels:  backup, cron
aws-tag-sched-ops
Retired, please see https://github.com/sqlxpert/lights-off-aws
Stars: ✭ 24 (-80.65%)
Mutual labels:  backup, cron
docker-aws-s3-sync
Docker container to sync a folder to Amazon S3
Stars: ✭ 21 (-83.06%)
Mutual labels:  backup, s3-bucket
s3backup
No more custom backup scripts please ...
Stars: ✭ 20 (-83.87%)
Mutual labels:  backup, s3-bucket
trellis-backup-during-deploy
Backup WordPress database during Trellis deploys
Stars: ✭ 23 (-81.45%)
Mutual labels:  backup
joplin-scripts
scripts for Joplin
Stars: ✭ 40 (-67.74%)
Mutual labels:  backup
mi-cron
📆 A microscopic parser for standard cron expressions.
Stars: ✭ 16 (-87.1%)
Mutual labels:  cron

istepanov/backup-to-s3

Docker Stars Docker Pulls Docker Build Layers

Docker container that periodically backups files to Amazon S3 using s3cmd sync and cron.

Usage

docker run -d [OPTIONS] istepanov/backup-to-s3

Parameters:

  • -e ACCESS_KEY=<AWS_KEY>: Your AWS key.
  • -e SECRET_KEY=<AWS_SECRET>: Your AWS secret.
  • -e S3_PATH=s3://<BUCKET_NAME>/<PATH>/: S3 Bucket name and path. Should end with trailing slash.
  • -v /path/to/backup:/data:ro: mount target local folder to container's data folder. Content of this folder will be synced with S3 bucket.

Optional parameters:

  • -e PARAMS="--dry-run": parameters to pass to the sync command (full list here).
  • -e DATA_PATH=/data/: container's data folder. Default is /data/. Should end with trailing slash.
  • -e 'CRON_SCHEDULE=0 1 * * *': specifies when cron job starts (details). Default is 0 1 * * * (runs every day at 1:00 am).
  • no-cron: run container once and exit (no cron scheduling).

Examples:

Run upload to S3 everyday at 12:00pm:

docker run -d \
    -e ACCESS_KEY=myawskey \
    -e SECRET_KEY=myawssecret \
    -e S3_PATH=s3://my-bucket/backup/ \
    -e 'CRON_SCHEDULE=0 12 * * *' \
    -v /home/user/data:/data:ro \
    istepanov/backup-to-s3

Run once then delete the container:

docker run --rm \
    -e ACCESS_KEY=myawskey \
    -e SECRET_KEY=myawssecret \
    -e S3_PATH=s3://my-bucket/backup/ \
    -v /home/user/data:/data:ro \
    istepanov/backup-to-s3 no-cron

Run once to get from S3 then delete the container:

docker run --rm \
    -e ACCESS_KEY=myawskey \
    -e SECRET_KEY=myawssecret \
    -e S3_PATH=s3://my-bucket/backup/ \
    -v /home/user/data:/data:rw \
    istepanov/backup-to-s3 get

Run once to delete from s3 then delete the container:

docker run --rm \
    -e ACCESS_KEY=myawskey \
    -e SECRET_KEY=myawssecret \
    -e S3_PATH=s3://my-bucket/backup/ \
    istepanov/backup-to-s3 delete

Security considerations: on restore, this opens up permissions on the restored files widely.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].