• How to use the function "Upload Backups To Google Drive"

  • Members help others by posting how to use VPSSIM.

Members help others by posting how to use VPSSIM.
 #1705  by nguyenoanh
 18 Aug 2018 07:57
Hướng dẫn sử dụng chức năng "Upload Backup To Google Drive"

From version 4.5.10, VPSSIM support auto upload backup files (website & database) to Google Drive using Rclone.
=========================================================================
             VPSSIM - Manage VPS/Server by VPSSIM.COM (4.5.11)
=========================================================================
                    Upload Backups To Google Drive
=========================================================================
Folder Backup: /home/vpssim.demo/private_html/backup
=========================================================================
Total Size Backup Files (Website & Database): 235M
=========================================================================
How to use: http://go.vpssim.vn/1147
=========================================================================

1) Connect VPS To Google Drive	   4) Check Google Drive Status
2) Set Auto Upload Time		   5) Download Backup To This Server
3) Upload To Google Drive Now	   6) Clear All Config
Type in your choice (0-Exit):
Notes:

+ Rclone support mnay cloud service (such as: Google drive, Dropbox, Mega ..) but current VPSSIM only support auto config for Google Driver.

+ This function only auto upload backup files, so that you must enable Auto Backup Website & Database in VPS.

==> View How to use auto backup ALL database

==> View How to use auto backup ALL Websites

The function path: VPSSIM Menu ==> Upload Backup To Google Drive

Functions details:

1. Connect VPS To Google Driver : Using this function to config connect VPS to Google Drive account.
2. Set Auto Upload Time: Config script auto upload to Google Drive
3. Clear All Config: Clear & re-set all config for this function.
4. Upload To Google Drive Now: Upload backup files to Google Driver immediately
5. Check Google Drive Status: Check Google Driver disc status
6. Download Backup To This Server: Download Backup from Google Driver to this server.

How to connect VPS to Google Driver

Using the function Connect VPS To Google Drive to do this job.

No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
Type in n and then anyname in name> (option)

https://community.vpssim.vn/upanh/1534551629.png

Then in Type of storage to configure., type in 11 to choose Google Drive

https://community.vpssim.vn/upanh/1534551750.png

In the next sections, you just type Enter and do not enter anything. When you see the line: Use auto config?, you type in n and Enter.

https://community.vpssim.vn/upanh/1534552035.png

Then copy the link Rclone show and using it on the browser:

https://community.vpssim.vn/upanh/1534552218.png

Use the link like below in the browser to get verification code:
Code: Select all
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=202264815644.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3
Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=68950b017f661839a50182
bf7803f0b6
In browser, we login to Google Drive account then allow Rclone:

https://community.vpssim.vn/upanh/1534519868.png

Then get the verification code Enter verification code> trên SSH:

https://community.vpssim.vn/upanh/1534519945.png

Copy this code to Enter verification code> and Enter

https://community.vpssim.vn/upanh/1534520038.png

Next in Configure this as a team drive?; Type in n and Enter

then Yes this is OK, type in y

next q and press Enter to quit.

https://community.vpssim.vn/upanh/1534520297.png

And VPSSIM show finished connect:

https://community.vpssim.vn/upanh/1534552537.png

Next, We Configure The Upload Time

Depending on the size of your Google Drive account, you set the time to save the backup files.

The auto upload time you choose should be different when you configure automatic backup of all websites and databases.

=========================================================================
             VPSSIM - Manage VPS/Server by VPSSIM.COM (4.5.10)
=========================================================================
                    Upload Backups To Google Driver
=========================================================================
How to use: http://go.vpssim.vn/1147
=========================================================================

1) Connect VPS To Google Driver	     3) Clear All Config
2) Set Time Upload To Google Driver
Type in your choice (0-Exit): 2
=========================================================================
Choose the time a backup files can be store in Google Driver. VPSSIM will
-------------------------------------------------------------------------
delete all files reach this time limit.
=========================================================================
1) 3 Days
2) 7 Days
3) 10 Days
4) 14 Days
5) 20 Days
6) 30 Days
Type in your choice (0-Exit): 2
-------------------------------------------------------------------------
VPSSIM send backup files to Google driver in what time ? [0-23]: 6
=========================================================================
=========================================================================
At 6h everyday, VPSSIM auto upload ALL backup files created by the
-------------------------------------------------------------------------
functions [ Auto Backup (ALL) Website ] & [ Auto Backup (ALL) Database ]
-------------------------------------------------------------------------
to Google Driver.
-------------------------------------------------------------------------
To make sure Google Driver DISC not FULL, VPSSIM auto delete all backup
-------------------------------------------------------------------------
files reach 7 days old.
=========================================================================
You want to set this config ? [y/N] y
Successful configuration:

=========================================================================
Configure upload backup files to google driver successfully.
-------------------------------------------------------------------------
VPSSIM do this job at 6h everyday.
-------------------------------------------------------------------------
The name of backup folder in your Google Driver: 108.61.150.186
-------------------------------------------------------------------------
Remember to enable [Auto Backup Code] & [Auto Backup Database] function !
-------------------------------------------------------------------------
Auto Backup Code:
-------------------------------------------------------------------------
VPSSIM Menu => Backup & Restore Code ==> Auto Backup (ALL) Website
-------------------------------------------------------------------------
Auto Backup Database:
-------------------------------------------------------------------------
VPSSIM Menu ==> Database Manage ==> Auto Backup (ALL) Databases
=========================================================================
             VPSSIM - Manage VPS/Server by VPSSIM.COM (4.5.10)
=========================================================================
                    Upload Backups To Google Driver
=========================================================================
How to use: http://go.vpssim.vn/1147
=========================================================================

1) Connect VPS To Google Driver	     3) Clear All Config
2) Set Time Upload To Google Driver
Type in your choice (0-Exit):
Now we finished config Rclone auto upload all backup files to Google Driver at 6h everydays. The backup files will be delete from driver when it reach 7 days old.

The name of the folder contains all backup files in Google Driver is your VPS's IP:

 https://community.vpssim.vn/upanh/1534521058.png

How To Use The Function Clear All Config

If you want to change the config (time upload ..) or disconect VPS from Google Driver account or change to other account, you must run this function then re-connect to Google Driver again.
=========================================================================
             VPSSIM - Manage VPS/Server by VPSSIM.COM (4.5.10)
=========================================================================
                    Upload Backups To Google Driver
=========================================================================
How to use: http://go.vpssim.vn/1147
=========================================================================

1) Connect VPS To Google Driver	     3) Clear All Config
2) Set Time Upload To Google Driver
Type in your choice (0-Exit): 3
=========================================================================
Use this function to clear all the current config of [ Upload Backup To
-------------------------------------------------------------------------
Google Driver ] function of  VPSSIM.
=========================================================================
Are you sure to do this action ? [y/N] y
Get 25 USD Free To USE VPSSIM
Get 25 USD Free To USE VPSSIM