项目作者: mbrother2

项目描述 :
Backup to Cloud( Google Drive, Dropbox ... ) use rclone
高级语言: Shell
项目地址: git://github.com/mbrother2/butdr.git
创建时间: 2019-12-16T03:59:55Z
项目社区:https://github.com/mbrother2/butdr

开源协议:MIT License

下载


butdr

Backup to Cloud solution use rclone

What can this script do?

  • Download & config rclone with your Cloud credential
  • Create cron auto backup
  • Exclude/include file/directory when run cron backup
  • Sync backup directory from local to Cloud
  • Compress backup directory before upload
  • Send error email if upload to Cloud fail
  • Auto remove old backup on Cloud
  • Run upload from your backup directory to Cloud whenever you want
  • Detail log

Structure

  1. $HOME (/root or /home/$USER)
  2. ├── bin
  3. ├── butdr.bash
  4. ├── cron_backup.bash
  5. └── rclone
  6. └── .config
  7. ├── accounts
  8. ├── <cloud>.conf
  9. ├── <cloud>.exclude
  10. └── <cloud>.include
  11. ├── butdr.conf
  12. ├── butdr.log
  13. ├── detail.log
  14. └── rclone
  15. └── rclone.conf

OS support(x86_64):

  • Linux: CentOS, Debian, Ubuntu, openSUSE, Oracle Linux

Cloud support:

  • Google Drive
  • Dropbox
  • Yandex
  • One Drive
  • Backblaze

How to use

On Linux system:

  1. curl -o butdr.bash https://raw.githubusercontent.com/mbrother2/butdr/master/butdr.bash
  2. bash butdr.bash --setup

After install, run backup immediately to test:

  1. cron_backup.bash -v

Wiki

Common

What is the option SYNC_FILE?

Google Drive( drive)

Create own Google credential step by step
Get Google folder ID
Turn on 2 Step Verification & create app’s password for Google email

Dropbox( dropbox)

Create own Dropbox credential step by step

Yandex( yandex)

Create own Yandex credential step by step

One Drive( onedrive)

Create own One Drive credential step by step

Backblaze( b2)

Create own Backblaze credential step by step
Backblaze Create new bucket

Change log

https://github.com/mbrother2/butdr/blob/master/CHANGLOG.md

Options

Run command bash butdr.bash --help to show all options( After install you only need run butdr.bash --help

  1. butdr@ubuntu1804:~$ butdr.bash --help
  2. butdr.bash - Backup to Cloud solution
  3. Usage: butdr.bash [option] [command]
  4. Options:
  5. --help show this help message and exit
  6. --setup setup or reset all scripts & config file
  7. --account reset account
  8. reset reset all accounts
  9. --config config global or backup file
  10. backup-single config backup file for single account
  11. global config global file
  12. show show all configs
  13. --update update butdr.bash & cron_backup.bash to latest version
  14. --uninstall remove all butdr scripts and /home/butdr/.config directory
1. Setup

butdr.bash --setup
Setup or reset all scripts & config file

Example
  1. butdr@ubuntu1804:~$ bash butdr.bash --setup
  2. [ 19/12/2019 12:03:27 ] ---
  3. [ 19/12/2019 12:03:27 ] Creating necessary directory...
  4. [ 19/12/2019 12:03:27 ] Directory /home/butdr/.config existed. Skip
  5. [ 19/12/2019 12:03:27 ] Check write to /home/butdr/.config successful
  6. [ 19/12/2019 12:03:27 ] Create directory /home/butdr/.config/accounts successful
  7. [ 19/12/2019 12:03:27 ] Check write to /home/butdr/.config/accounts successful
  8. [ 19/12/2019 12:03:27 ] Directory /home/butdr/bin existed. Skip
  9. [ 19/12/2019 12:03:27 ] Check write to /home/butdr/bin successful
  10. [ 19/12/2019 12:03:27 ] Checking OS...
  11. [ 19/12/2019 12:03:27 ] OS supported
  12. [ 19/12/2019 12:03:27 ] Checking necessary package...
  13. [ 19/12/2019 12:03:27 ] Package curl is installed
  14. [ 19/12/2019 12:03:27 ] Package unzip is installed
  15. [ 19/12/2019 12:03:27 ] Cheking network...
  16. [ 19/12/2019 12:03:27 ] Connect Github successful
  17. [ 19/12/2019 12:03:29 ] Connect rclone successful
  18. [ 19/12/2019 12:03:29 ] Downloading script cron_backup from github...
  19. [ 19/12/2019 12:03:29 ] Check md5sum for file cron_backup.bash successful
  20. [ 19/12/2019 12:03:30 ] Downloading script butdr from github...
  21. [ 19/12/2019 12:03:30 ] Check md5sum for file butdr.bash successful
  22. [ 19/12/2019 12:03:30 ] Downloading rclone from homepage...
  23. % Total % Received % Xferd Average Speed Time Time Time Current
  24. Dload Upload Total Spent Left Speed
  25. 100 11.1M 100 11.1M 0 0 888k 0 0:00:12 0:00:12 --:--:-- 1183k
  26. [ 19/12/2019 12:03:43 ] Download rclone successful
  27. Read more: https://github.com/mbrother2/backuptogoogle/wiki/Create-own-Google-credential-step-by-step
  28. Your Google API client_id: xxxxxx
  29. Your Google API client_secret: xxxxxx
  30. Read more https://github.com/mbrother2/backuptogoogle/wiki/Get-Google-folder-ID
  31. Your Google folder ID: 1TQwTpELBtA5SaIi8mIVzVJdcdv_GNzM3
  32. 2019/12/19 13:35:04 NOTICE: Config file "/home/butdr/.config/rclone/rclone.conf" not found - using defaults
  33. Remote config
  34. Use auto config?
  35. * Say Y if not sure
  36. * Say N if you are working on a remote or headless machine
  37. Auto confirm is set: answering No, override by setting config parameter config_is_local=true
  38. If your browser doesn't open automatically go to the following link: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=xxxxxx&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=A6Joak1v_mTJ_Yct8i3diQ
  39. Log in and authorize rclone for access
  40. Enter verification code> 4/xxxxxx
  41. --------------------
  42. [googledrive]
  43. type = drive
  44. root_folder_id = 1TQwTpELBtA5SaIi8mIVzVJdcdv_GNzM3
  45. config_is_local = false
  46. scope = drive
  47. client_id = xxxxxx
  48. client_secret = xxxxxx
  49. token = {"access_token":"ya29.Il-xxxxxx","token_type":"Bearer","refresh_token":"1//xxxxxx","expiry":"2019-12-19T14:35:26.759362203+07:00"}
  50. --------------------
  51. Which directory on your server do you want to upload to account googledrive?(default /home/butdr/backup):
  52. How many days do you want to keep backup on Google Drive?(default 7):
  53. Read more https://github.com/mbrother2/backuptogoogle/wiki/What-is-the-option-SYNC_FILE%3F
  54. Do you want only sync file(default no)(y/n):
  55. Do you want compress directory before upload?(default no)(y/n):
  56. [ 19/12/2019 13:35:31 ] Setup config file for account googledrive successful
  57. [ 19/12/2019 13:35:31 ] Setting up global config file...
  58. Read more https://github.com/mbrother2/backuptogoogle/wiki/Turn-on-2-Step-Verification-&-create-app's-password-for-Google-email
  59. Do you want to send email if upload error(default no)(y/n):
  60. [ 19/12/2019 13:35:31 ] Setup global config file successful
  61. [ 19/12/2019 13:35:31 ] Setting up cron backup...
  62. [ 19/12/2019 13:35:31 ] Cron backup existed. Skip
  63. [ 19/12/2019 13:35:31 ] +-----
  64. [ 19/12/2019 13:35:31 ] | SUCESSFUL! Your informations:
  65. [ 19/12/2019 13:35:31 ] |---
  66. [ 19/12/2019 13:35:31 ] | Your email : None
  67. [ 19/12/2019 13:35:31 ] | Email password : None
  68. [ 19/12/2019 13:35:31 ] | Email notify : None
  69. [ 19/12/2019 13:35:31 ] | Global config file : /home/butdr/.config/butdr.conf
  70. [ 19/12/2019 13:35:32 ] |---
  71. [ 19/12/2019 13:35:32 ] | Account : googledrive
  72. [ 19/12/2019 13:35:32 ] | Backup dir : /home/butdr/backup
  73. [ 19/12/2019 13:35:32 ] | Keep backup : 7 days
  74. [ 19/12/2019 13:35:32 ] | Google folder ID : 1TQwTpELBtA5SaIi8mIVzVJdcdv_GNzM3
  75. [ 19/12/2019 13:35:32 ] | Sync file : No
  76. [ 19/12/2019 13:35:32 ] | Tar before upload : No
  77. [ 19/12/2019 13:35:32 ] +-----
  78. IMPORTANT: Please run command to use butdr: source /home/butdr/.profile
  79. If you get trouble when use butdr.bash please report here:
  80. https://github.com/mbrother2/butdr/issues
2. Account

butdr.bash --account reset
Reset account

Example
  1. butdr@ubuntu1804:~$ butdr.bash --account reset
  2. [ 19/12/2019 14:03:58 ] ---
  3. [ 19/12/2019 14:03:58 ] Creating necessary directory...
  4. [ 19/12/2019 14:03:58 ] Directory /home/butdr/.config existed. Skip
  5. [ 19/12/2019 14:03:58 ] Check write to /home/butdr/.config successful
  6. [ 19/12/2019 14:03:58 ] Directory /home/butdr/.config/accounts existed. Skip
  7. [ 19/12/2019 14:03:58 ] Check write to /home/butdr/.config/accounts successful
  8. [ 19/12/2019 14:03:58 ] Directory /home/butdr/bin existed. Skip
  9. [ 19/12/2019 14:03:58 ] Check write to /home/butdr/bin successful
  10. [ 19/12/2019 14:03:58 ] Creating googledrive account...
  11. Read more: https://github.com/mbrother2/backuptogoogle/wiki/Create-own-Google-credential-step-by-step
  12. Your Google API client_id: xxxxxx
  13. Your Google API client_secret: xxxxxx
  14. Read more https://github.com/mbrother2/backuptogoogle/wiki/Get-Google-folder-ID
  15. Your Google folder ID: 1TQwTpELBtA5SaIi8mIVzVJdcdv_GNzM3
  16. 2019/12/19 14:04:18 NOTICE: Config file "/home/butdr/.config/rclone/rclone.conf" not found - using defaults
  17. Remote config
  18. Use auto config?
  19. * Say Y if not sure
  20. * Say N if you are working on a remote or headless machine
  21. Auto confirm is set: answering No, override by setting config parameter config_is_local=true
  22. If your browser doesn't open automatically go to the following link: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=xxxxxx&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=G33rjrgGHNXRKPs59H5JOQ
  23. Log in and authorize rclone for access
  24. Enter verification code> 4/xxxxxx
  25. --------------------
  26. [googledrive]
  27. type = drive
  28. config_is_local = false
  29. scope = drive
  30. client_id = xxxxxx
  31. client_secret = xxxxxx
  32. root_folder_id = 1TQwTpELBtA5SaIi8mIVzVJdcdv_GNzM3
  33. token = {"access_token":"ya29.Il-xxxxxx","token_type":"Bearer","refresh_token":"1//xxxxxx","expiry":"2019-12-19T15:04:43.403854207+07:00"}
  34. --------------------
  35. [ 19/12/2019 14:04:43 ] +-----
  36. [ 19/12/2019 14:04:43 ] | SUCESSFUL! Your informations:
  37. [ 19/12/2019 14:04:43 ] |---
  38. [ 19/12/2019 14:04:43 ] | Account : googledrive
  39. [ 19/12/2019 14:04:43 ] | Backup dir : /home/butdr/backup
  40. [ 19/12/2019 14:04:43 ] | Keep backup : 7 days
  41. [ 19/12/2019 14:04:43 ] | Google folder ID : 1TQwTpELBtA5SaIi8mIVzVJdcdv_GNzM3
  42. [ 19/12/2019 14:04:43 ] | Sync file : No
  43. [ 19/12/2019 14:04:43 ] | Tar before upload : No
  44. [ 19/12/2019 14:04:43 ] +-----
3. Config

butdr.bash --config backup-single
Config backup file for single account

Example
  1. butdr@ubuntu1804:~$ butdr.bash --config backup-single
  2. [ 19/12/2019 14:08:41 ] ---
  3. [ 19/12/2019 14:08:41 ] Creating necessary directory...
  4. [ 19/12/2019 14:08:41 ] Directory /home/butdr/.config existed. Skip
  5. [ 19/12/2019 14:08:41 ] Check write to /home/butdr/.config successful
  6. [ 19/12/2019 14:08:41 ] Directory /home/butdr/.config/accounts existed. Skip
  7. [ 19/12/2019 14:08:41 ] Check write to /home/butdr/.config/accounts successful
  8. [ 19/12/2019 14:08:41 ] Directory /home/butdr/bin existed. Skip
  9. [ 19/12/2019 14:08:42 ] Check write to /home/butdr/bin successful
  10. [ 19/12/2019 14:08:42 ] Setting up backup config file...
  11. Which directory on your server do you want to upload to account googledrive?(default /home/butdr/backup): /home/butdr/backup2
  12. How many days do you want to keep backup on Google Drive?(default 7): 30
  13. Read more https://github.com/mbrother2/backuptogoogle/wiki/What-is-the-option-SYNC_FILE%3F
  14. Do you want only sync file(default no)(y/n): y
  15. Read more https://github.com/mbrother2/backuptogoogle/wiki/Get-Google-folder-ID
  16. Because you choose sync file method, so you must enter exactly Google folder ID here!
  17. Your Google folder ID(default None): 1TQwTpELBtA5SaIi8mIVzVJdcdv_GNzM3
  18. [ 19/12/2019 14:09:03 ] [WARNING] Directory /home/butdr/backup2 does not exist! Ensure you will be create it after.
  19. [ 19/12/2019 14:09:06 ] Setup config file for account googledrive successful
  20. [ 19/12/2019 14:09:06 ] +-----
  21. [ 19/12/2019 14:09:06 ] | SUCESSFUL! Your informations:
  22. [ 19/12/2019 14:09:06 ] |---
  23. [ 19/12/2019 14:09:06 ] | Account : googledrive
  24. [ 19/12/2019 14:09:06 ] | Backup dir : /home/butdr/backup2
  25. [ 19/12/2019 14:09:06 ] | Keep backup : 30 days
  26. [ 19/12/2019 14:09:06 ] | Google folder ID : 1TQwTpELBtA5SaIi8mIVzVJdcdv_GNzM3
  27. [ 19/12/2019 14:09:06 ] | Sync file : Yes
  28. [ 19/12/2019 14:09:06 ] | Tar before upload : No
  29. [ 19/12/2019 14:09:06 ] +-----

butdr.bash --config global
Config global file

Example
  1. butdr@ubuntu1804:~$ butdr.bash --config global
  2. [ 19/12/2019 14:10:48 ] ---
  3. [ 19/12/2019 14:10:48 ] Creating necessary directory...
  4. [ 19/12/2019 14:10:48 ] Directory /home/butdr/.config existed. Skip
  5. [ 19/12/2019 14:10:49 ] Check write to /home/butdr/.config successful
  6. [ 19/12/2019 14:10:49 ] Directory /home/butdr/.config/accounts existed. Skip
  7. [ 19/12/2019 14:10:49 ] Check write to /home/butdr/.config/accounts successful
  8. [ 19/12/2019 14:10:49 ] Directory /home/butdr/bin existed. Skip
  9. [ 19/12/2019 14:10:49 ] Check write to /home/butdr/bin successful
  10. [ 19/12/2019 14:10:49 ] Setting up global config file...
  11. Read more https://github.com/mbrother2/backuptogoogle/wiki/Turn-on-2-Step-Verification-&-create-app's-password-for-Google-email
  12. Do you want to send email if upload error(default no)(y/n): y
  13. Your Google email user name: backupxxxxxx@gmail.com
  14. Your Google email password: xxxxxx
  15. Which email will be receive notify?: backupxxxxxx@gmail.com
  16. [ 19/12/2019 14:11:11 ] Setup global config file successful
  17. [ 19/12/2019 14:11:11 ] +-----
  18. [ 19/12/2019 14:11:11 ] | SUCESSFUL! Your informations:
  19. [ 19/12/2019 14:11:11 ] |---
  20. [ 19/12/2019 14:11:11 ] | Your email : backupxxxxxx@gmail.com
  21. [ 19/12/2019 14:11:11 ] | Email password : xxxxxx
  22. [ 19/12/2019 14:11:11 ] | Email notify : backupxxxxxx@gmail.com
  23. [ 19/12/2019 14:11:11 ] | Global config file : /home/butdr/.config/butdr.conf
  24. [ 19/12/2019 14:11:11 ] +-----

butdr.bash --config show
Show all configs

Example
  1. butdr@ubuntu1804:~$ butdr.bash --config show
  2. [ 19/12/2019 14:12:20 ] ---
  3. [ 19/12/2019 14:12:20 ] Creating necessary directory...
  4. [ 19/12/2019 14:12:20 ] Directory /home/butdr/.config existed. Skip
  5. [ 19/12/2019 14:12:20 ] Check write to /home/butdr/.config successful
  6. [ 19/12/2019 14:12:20 ] Directory /home/butdr/.config/accounts existed. Skip
  7. [ 19/12/2019 14:12:20 ] Check write to /home/butdr/.config/accounts successful
  8. [ 19/12/2019 14:12:20 ] Directory /home/butdr/bin existed. Skip
  9. [ 19/12/2019 14:12:20 ] Check write to /home/butdr/bin successful
  10. [ 19/12/2019 14:12:20 ] +-----
  11. [ 19/12/2019 14:12:20 ] | SUCESSFUL! Your informations:
  12. [ 19/12/2019 14:12:20 ] |---
  13. [ 19/12/2019 14:12:20 ] | Your email : backupxxxxxx@gmail.com
  14. [ 19/12/2019 14:12:20 ] | Email password : xxxxxx
  15. [ 19/12/2019 14:12:20 ] | Email notify : backupxxxxxx@gmail.com
  16. [ 19/12/2019 14:12:20 ] | Global config file : /home/butdr/.config/butdr.conf
  17. [ 19/12/2019 14:12:20 ] |---
  18. [ 19/12/2019 14:12:20 ] | Account : googledrive
  19. [ 19/12/2019 14:12:20 ] | Backup dir : /home/butdr/backup2
  20. [ 19/12/2019 14:12:20 ] | Keep backup : 30 days
  21. [ 19/12/2019 14:12:20 ] | Google folder ID : 1TQwTpELBtA5SaIi8mIVzVJdcdv_GNzM3
  22. [ 19/12/2019 14:12:20 ] | Sync file : Yes
  23. [ 19/12/2019 14:12:20 ] | Tar before upload : No
  24. [ 19/12/2019 14:12:20 ] +-----
4. Update

butdr.bash --update
Update butdr.bash & cron_backup.bash to latest version

Example
  1. butdr@ubuntu1804:~$ butdr.bash --update
  2. [ 19/12/2019 14:12:52 ] ---
  3. [ 19/12/2019 14:12:52 ] Creating necessary directory...
  4. [ 19/12/2019 14:12:52 ] Directory /home/butdr/.config existed. Skip
  5. [ 19/12/2019 14:12:52 ] Check write to /home/butdr/.config successful
  6. [ 19/12/2019 14:12:52 ] Directory /home/butdr/.config/accounts existed. Skip
  7. [ 19/12/2019 14:12:52 ] Check write to /home/butdr/.config/accounts successful
  8. [ 19/12/2019 14:12:52 ] Directory /home/butdr/bin existed. Skip
  9. [ 19/12/2019 14:12:52 ] Check write to /home/butdr/bin successful
  10. [ 19/12/2019 14:12:52 ] Checking OS...
  11. [ 19/12/2019 14:12:52 ] OS supported
  12. [ 19/12/2019 14:12:52 ] Checking necessary package...
  13. [ 19/12/2019 14:12:52 ] Package curl is installed
  14. [ 19/12/2019 14:12:52 ] Package unzip is installed
  15. [ 19/12/2019 14:12:52 ] Cheking network...
  16. [ 19/12/2019 14:12:52 ] Connect Github successful
  17. [ 19/12/2019 14:12:52 ] Downloading script cron_backup from github...
  18. [ 19/12/2019 14:12:53 ] Check md5sum for file cron_backup.bash successful
  19. [ 19/12/2019 14:12:53 ] Downloading script butdr from github...
  20. [ 19/12/2019 14:12:54 ] Check md5sum for file butdr.bash successful
  21. [ 19/12/2019 14:12:54 ] [INFO] Update butdr successful
5. Uninstall

butdr.bash --uninstall
Remove all butdr scripts and /home/butdr.config directory

Example
  1. butdr@ubuntu1804:~$ butdr.bash --uninstall
  2. [ 19/12/2019 14:16:17 ] ---
  3. [ 19/12/2019 14:16:17 ] Creating necessary directory...
  4. [ 19/12/2019 14:16:17 ] Directory /home/butdr/.config existed. Skip
  5. [ 19/12/2019 14:16:17 ] Check write to /home/butdr/.config successful
  6. [ 19/12/2019 14:16:17 ] Directory /home/butdr/.config/accounts existed. Skip
  7. [ 19/12/2019 14:16:17 ] Check write to /home/butdr/.config/accounts successful
  8. [ 19/12/2019 14:16:17 ] Directory /home/butdr/bin existed. Skip
  9. [ 19/12/2019 14:16:17 ] Check write to /home/butdr/bin successful
  10. [ 19/12/2019 14:16:17 ] Removing all butdr.bash scripts...
  11. [ 19/12/2019 14:16:17 ] Remove all butdr.bash scripts successful
  12. Do you want remove /home/butdr/.config directory?(y/n) y
  13. [ 19/12/2019 14:16:22 ]Remove directory /home/butdr/.config successful
6. Run cron_backup.bash

cron_backup.bash
Run upload to Google Drive immediately without show log

cron_backup.bash -v
Run upload to Google Drive immediately with show log detail

Example

Backup to cloud normaly

  1. butdr@ubuntu1804:~$ cron_backup.bash -v
  2. [ 19/12/2019 14:15:52 ] ---
  3. [ 19/12/2019 14:15:52 ] Checking OS...
  4. [ 19/12/2019 14:15:52 ] OS supported
  5. [ 19/12/2019 14:15:52 ] Start upload to Cloud...
  6. [ 19/12/2019 14:15:52 ] [googledrive] Checking Google folder ID...
  7. [ 19/12/2019 14:15:53 ] [googledrive] [INFO] Check Google folder ID successful
  8. [ 19/12/2019 14:15:53 ] [googledrive] Directory 19_12_2019 existed. Skipping...
  9. [ 19/12/2019 14:15:53 ] [googledrive] [INFO] You do not compress directory before upload
  10. [ 19/12/2019 14:15:53 ] [googledrive] Uploading from /home/butdr/backup2 to 19_12_2019 on Cloud
  11. [ 19/12/2019 14:16:07 ] [googledrive] [UPLOAD] Finish! All files and directories in /home/butdr/backup2 are uploaded to Cloud
  12. [ 19/12/2019 14:16:10 ] [googledrive] Directory 19_11_2019 does not exist. Nothing need remove!
  13. [ 19/12/2019 14:16:10 ] Finish! All files and directories are uploaded or synced to Cloud

Backup to cloud with SYNC_FILE=yes

  1. butdr@ubuntu1804:~$ cron_backup.bash -v
  2. [ 19/12/2019 14:14:08 ] ---
  3. [ 19/12/2019 14:14:08 ] Checking OS...
  4. [ 19/12/2019 14:14:08 ] OS supported
  5. [ 19/12/2019 14:14:08 ] Start upload to Cloud...
  6. [ 19/12/2019 14:14:08 ] [googledrive] Syncing /home/butdr/backup2 to Cloud...
  7. [ 19/12/2019 14:14:44 ] [googledrive] [SYNC] Finish! All files and directories in /home/butdr/backup2 are synced to Cloud
  8. [ 19/12/2019 14:14:44 ] Finish! All files and directories are uploaded or synced to Cloud

Backup to cloud with TAR_BEFORE_UPLOAD=Yes

  1. butdr@ubuntu1804:~$ cron_backup.bash -v
  2. [ 19/12/2019 14:15:18 ] ---
  3. [ 19/12/2019 14:15:18 ] Checking OS...
  4. [ 19/12/2019 14:15:18 ] OS supported
  5. [ 19/12/2019 14:15:18 ] Start upload to Cloud...
  6. [ 19/12/2019 14:15:18 ] [googledrive] Checking Google folder ID...
  7. [ 19/12/2019 14:15:19 ] [googledrive] [INFO] Check Google folder ID successful
  8. [ 19/12/2019 14:15:20 ] [googledrive] Directory 19_12_2019 does not exist. Creating...
  9. [ 19/12/2019 14:15:25 ] [googledrive] [CREATE] Created directory 19_12_2019 successful
  10. [ 19/12/2019 14:15:25 ] [googledrive] Compressing backup directory...
  11. [ 19/12/2019 14:15:25 ] [googledrive] [COMPRESS] Compress /home/butdr/backup2 successful
  12. [ 19/12/2019 14:15:25 ] [googledrive] Uploading backup2_NjkxNTQ4NTJlMDcw.tar.gz to directory 19_12_2019...
  13. [ 19/12/2019 14:15:28 ] [googledrive] [UPLOAD] Uploaded backup2_NjkxNTQ4NTJlMDcw.tar.gz to directory 19_12_2019
  14. [ 19/12/2019 14:15:28 ] [googledrive] Removing backup2_NjkxNTQ4NTJlMDcw.tar.gz after upload...
  15. [ 19/12/2019 14:15:28 ] [googledrive] [REMOVE] Remove backup2_NjkxNTQ4NTJlMDcw.tar.gz successful
  16. [ 19/12/2019 14:15:29 ] [googledrive] Directory 19_11_2019 does not exist. Nothing need remove!
  17. [ 19/12/2019 14:15:29 ] Finish! All files and directories are uploaded or synced to Cloud