You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			|  | 3 years ago | |
|---|---|---|
| .. | ||
| Dockerfile | 3 years ago | |
| README.md | 3 years ago | |
| backup.sh | 3 years ago | |
| install.sh | 3 years ago | |
| run.sh | 4 years ago | |
		
			
				
				README.md
			
		
		
	
	mysql-backup-s3
Backup MySQL to S3 (supports periodic backups & mutli files)
Basic usage
$ docker run -e S3_ACCESS_KEY_ID=key -e S3_SECRET_ACCESS_KEY=secret -e S3_BUCKET=my-bucket -e S3_PREFIX=backup -e MYSQL_USER=user -e MYSQL_PASSWORD=password -e MYSQL_HOST=localhost schickling/mysql-backup-s3
Environment variables
- MYSQLDUMP_OPTIONSmysqldump options (default: --quote-names --quick --add-drop-table --add-locks --allow-keywords --disable-keys --extended-insert --single-transaction --create-options --comments --net_buffer_length=16384)
- MYSQLDUMP_DATABASElist of databases you want to backup (default: --all-databases)
- MYSQL_HOSTthe mysql host required
- MYSQL_PORTthe mysql port (default: 3306)
- MYSQL_USERthe mysql user required
- MYSQL_PASSWORDthe mysql password required
- S3_ACCESS_KEY_IDyour AWS access key required
- S3_SECRET_ACCESS_KEYyour AWS secret key required
- S3_BUCKETyour AWS S3 bucket path required
- S3_PREFIXpath prefix in your bucket (default: 'backup')
- S3_FILENAMEa consistent filename to overwrite with your backup. If not set will use a timestamp.
- S3_REGIONthe AWS S3 bucket region (default: us-west-1)
- S3_ENDPOINTthe AWS Endpoint URL, for S3 Compliant APIs such as minio (default: none)
- S3_ENSURE_BUCKET_EXISTSset to- noto assume the bucket exists, avoiding the need of S3 read permissions (default: yes)
- S3_S3V4set to- yesto enable AWS Signature Version 4, required for minio servers (default: no)
- MULTI_FILESAllow to have one file per database if set- yesdefault: no)
- SCHEDULEbackup schedule time in cron format like- 7 2,14 * * *