Skip to content

Simple script for backup to Yandex.Disk via API

Notifications You must be signed in to change notification settings

semin-alx/yd-api-backuper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Simpe bash script for backup files to Yandex.Disk via API For more details you can visit article at my blog

Features

  • OAuth authorization
  • Needs only curl (no webdav or yandex client)
  • GPG encryption
  • email notification

Settings

token -- token for Yandex.Disk application backupDir -- name of backup directory logFile -- name of logfile GPGENCRYPTUID -- GPG UID mailLog -- email address for sending logs mailLogErrorOnly -- send email only if error occured

Options

    -h  Show help
    -f /path/to/file  Specify filename for upload
    -g user@gpgid  Specify GPG UID
    -m user@localhost  Specify email for logging
    -e  Send email on error only

Usage

Copy file to Yandex Disk:

./yd-api-backuper.sh -f /path/to/file/file_name

Encrypt and copy file to Yandex Disk:

./yd-api-backuper.sh -f /path/to/file/file_name -g username@server

Copy file to Yandex Disk and notify user about errors

./yd-api-backuper.sh -f /path/to/file/file_name -m user@localhost -e

About

Simple script for backup to Yandex.Disk via API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%