https://github.com/fealone/salvare
This tool is for sending directories to storage on clouds for backup. 'salvare' means save in Latin.
https://github.com/fealone/salvare
aws-s3 backup dropbox gcp-storage shell
Last synced: 19 days ago
JSON representation
This tool is for sending directories to storage on clouds for backup. 'salvare' means save in Latin.
- Host: GitHub
- URL: https://github.com/fealone/salvare
- Owner: fealone
- License: gpl-3.0
- Created: 2020-11-18T02:17:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T01:45:00.000Z (over 3 years ago)
- Last Synced: 2026-05-17T11:58:01.090Z (about 2 months ago)
- Topics: aws-s3, backup, dropbox, gcp-storage, shell
- Language: Shell
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# salvare
This tool is for sending directories to storage on clouds for backup.
'salvare' means save in Latin.
## Help
```
Usage: salvare [TARGET] [OPTIONS]...
Target:
Backup target
Options:
-h, --help Show this message and exit.
-u, --upload-type [ENUM] Select upload type [GCS, S3, Dropbox].
-d, --destination [TEXT] Destination path by upload type.
-t, --tmpdir [TEXT] The path used for writing with temporary.
-n, --name [TEXT] Used for the temporary file.
-a, --access-token [TEXT] Access token by upload type.
```
## Usage
### GCS
#### Required
* gcloud
* curl
#### Commands
```bash
export CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE=credentials.json
./salvare {BACKUP_DIRECTORY} -u GCS -d gs://{BUCKET}/{OBJECT}
```
### S3
#### Required
* openssl
* base64
#### Commands
```bash
./salvare {BACKUP_DIRECTORY} --upload-type S3 --destination s3://{BUCKET}/{OBJECT} --access-key-id {ACCESS_KEY_ID} --secret-access-key {SECRET_ACCESS_KEY}
```
### Dropbox
#### Required
* curl
#### Commands
```bash
./salvare {BACKUP_DIRECTORY} -a {ACCESS_TOKEN} -u Dropbox -d {DEST_FULL_PATH}
```
#### Notes
* Get the access token via dropbox developers
- https://www.dropbox.com/developers
* Required scope `files.content.write`