项目作者: fealone

项目描述 :
This tool is for sending directories to storage on clouds for backup. 'salvare' means save in Latin.
高级语言: Shell
项目地址: git://github.com/fealone/salvare.git
创建时间: 2020-11-18T02:17:25Z
项目社区:https://github.com/fealone/salvare

开源协议:GNU General Public License v3.0

下载


salvare

This tool is for sending directories to storage on clouds for backup.
‘salvare’ means save in Latin.

Help

  1. Usage: salvare [TARGET] [OPTIONS]...
  2. Target:
  3. Backup target
  4. Options:
  5. -h, --help Show this message and exit.
  6. -u, --upload-type [ENUM] Select upload type [GCS, S3, Dropbox].
  7. -d, --destination [TEXT] Destination path by upload type.
  8. -t, --tmpdir [TEXT] The path used for writing with temporary.
  9. -n, --name [TEXT] Used for the temporary file.
  10. -a, --access-token [TEXT] Access token by upload type.

Usage

GCS

Required

  • gcloud
  • curl

Commands

  1. export CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE=credentials.json
  2. ./salvare {BACKUP_DIRECTORY} -u GCS -d gs://{BUCKET}/{OBJECT}

S3

Required

  • openssl
  • base64

Commands

  1. ./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

  1. ./salvare {BACKUP_DIRECTORY} -a {ACCESS_TOKEN} -u Dropbox -d {DEST_FULL_PATH}

Notes