4.3.0 • Published 2 years ago
backup-to-cloud v4.3.0
backup-to-cloud
A simple backup tool which uploads encrypted files to S3, in batches.
Ideally, it should be setup to run in a crontab entry.
Features
- Encrypts files locally with
gpg - Uploads files to S3 in batches of customizable size
- Support for uploading a
tararchive of files in certain folders, useful for sources with thousands of files (e.g. photo library) - Rescans sources at specific intervals to find new or updated files
- Removes files from S3 if they are removed locally
Requirements
- OS: Linux, MacOS (untested)
- node.js 10+
awscli1.8.6+ (for support ofSTANDARD_IAstorage class)findgpgtar
Install
aws configureyarn install --productionORnpm install --productioncp config.sample.js config.default.js- Modify your new config file
- Check your config file:
bin/backup-to-cloud --check-config - Try it out first with:
bin/backup-to-cloud --dry Set up a crontab entry for it, for example:
- run every hour with verbose logging:
0 * * * * cd /path/to/this && ./bin/backup-to-cloud --verbose >> cron.log 2>&1- run every 12 hours:
0 */12 * * * cd /path/to/this && ./bin/backup-to-cloud >> cron.log 2>&1
Tools
backup-to-cloud
./bin/backup-to-cloud --help
./bin/backup-to-cloud --check-config
./bin/backup-to-cloud --dry
./bin/backup-to-cloudbackup-restore
Restore a file or folder and decrypt:
./bin/backup-restore --help
./bin/backup-restore --output OUTPUT_DIR_OR_FILE REMOTE_DIR_OR_FILESchedule a restore test:
0 1 * * * cd /path/to/this && ./bin/backup-restore --output TEMPORARY_DIR --test / >> restore-test.log 2>&1backup-decrypt
Decrypt a downloaded encrypted file:
./bin/backup-decrypt --help
./bin/backup-decrypt --output OUTPUT_FILE INPUT_FILEbackup-verify
Verify that the DB and remote files are in sync:
./bin/backup-verify --help
./bin/backup-verify --dry
./bin/backup-verifyUpgrade
1.6.0 -> 2.0.0
The DB format has switched from JSON to SQLite. To upgrade existing DB, run:
./bin/backup-upgrade-db4.3.0
2 years ago
4.2.0
6 years ago
4.1.0
6 years ago
4.0.2
6 years ago
4.0.1
6 years ago
4.0.0
6 years ago
3.1.0
6 years ago
3.0.1
6 years ago
3.0.0
7 years ago
2.5.1
7 years ago
2.5.0
7 years ago
2.4.2
8 years ago
2.4.1
8 years ago
2.4.0
9 years ago
2.3.1
9 years ago
2.3.0
9 years ago
2.2.0
9 years ago
2.1.0
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.6.0
9 years ago
1.5.0
9 years ago
1.4.2
9 years ago
1.4.1
9 years ago
1.4.0
9 years ago