项目作者: EloreTec

项目描述 :
Backup to Google Drive CLI
高级语言: C#
项目地址: git://github.com/EloreTec/BackupToGoogleDrive.git
创建时间: 2018-11-13T01:59:03Z
项目社区:https://github.com/EloreTec/BackupToGoogleDrive

开源协议:

下载


Backup to Google Drive CLI

Usage

  • Download dist file
    • bkp-gdrive-cli461.zip to .NET Framework 4.6.1 or newest (only Windows)
    • bkp-gdrive-cli.zip to .NET Core 2.1.1 or newest
  • Create new project in http://console.developers.google.com
  • Enable Google API
  • Create service account credentials
  • Download service account credentials json file (renamed service-account-credential.json) in dist folder
  • Execute commands

Upload

  1. [4.6.1] bkp-gdrive-cli.exe upload -s [shared-folder] -f "[file]"
  2. [core] dotnet bkp-gdrive-cli.dll upload -s [shared-folder] -f "[file]"
  3. -s, --shared-folder Required. Set shared folder to
  4. backup files in Google Drive.
  5. -f, --files Required. Set files path.
  6. -r, --remove-duplicate (Default: true) Set to remove
  7. duplicate files.
  8. -c, --service-account-credential-file (Default:
  9. service-account-credential.json) Set
  10. service account credentials file to
  11. connect Google Drive Api.
  12. -n, --aplication-name (Default: Backup to Google Drive)
  13. Set application name.

Purge

  1. [4.6.1] bkp-gdrive-cli.exe upload -s [shared-folder] -d [days]
  2. [core] dotnet bkp-gdrive-cli.dll upload -s [shared-folder] -d [days]
  3. -s, --shared-folder Required. Set shared folder to purge
  4. files in Google Drive.
  5. -d, --days Required. Set days to purge files in
  6. Google Drive, by modification date.
  7. -r, --remove-duplicate (Default: true) Set to remove
  8. duplicate files.
  9. -c, --service-account-credential-file (Default:
  10. service-account-credential.json) Set
  11. service account credentials file to
  12. connect Google Drive Api.
  13. -n, --aplication-name (Default: Backup to Google Drive)
  14. Set application name.
  15. --help Display this help screen.
  16. --version Display version information.