Sync files and directories to S3 using the s3cmd sync tool. Leverage a cache file for MD5 hash calculations of local files to speed up performance.
Mount the directories you would like to backup to the /backup
directory.
Mount a second directory to /config
for the cache file.
Variable | Default | Description |
---|---|---|
ACCESS_KEY | AWS IAM Access Key | |
SECRET_KEY | AWS IAM Secret Key | |
S3PATH | S3 bucket and path | |
S3CMDPARAMS | Custom S3cmd parameters | |
CRON_SCHEDULE | 0 3 * * 6 |
How often a backup should be run using CRON |
LOG_LEVEL | INFO |
Logging Level |
CACHE_FILE | /tmp/s3cmd_cache.txt |
Location to write the file cache |
LOG_FILE | /tmp/s3backup.log |
Location to write the log file |