Difference between revisions of "BackUp Data to Google Drive"

From CMU ITSC Network
Line 1: Line 1:
 
== บทนำ ==
 
== บทนำ ==
 
มช. มีบริการ G Suite for Education จาก Google ซึ่งบุคลากรและนักศึกษาทุกคนสามารถเปิดใช้งานได้และ Google Drive ของ G Suite for Education มีพื้นที่เก็บข้อมูลไม่จำกัด บทความนี้จะแนะนำการใช้เครื่องมือสำรองข้อจาก Server เก็บไว้บน Google Drive แบบอัตโนมัติ
 
มช. มีบริการ G Suite for Education จาก Google ซึ่งบุคลากรและนักศึกษาทุกคนสามารถเปิดใช้งานได้และ Google Drive ของ G Suite for Education มีพื้นที่เก็บข้อมูลไม่จำกัด บทความนี้จะแนะนำการใช้เครื่องมือสำรองข้อจาก Server เก็บไว้บน Google Drive แบบอัตโนมัติ
 +
 +
== rclone ==
 +
[https://rclone.org rclone] เป็น open source tool ที่สามารถ copy file ไปเก็บไว้บน cloud storage ได้ และรองรับ Google Drive การทำงานจะคล้ายกับ rsync
 +
=== ติดตั้ง rclone ===
 +
<syntaxhighlight>
 +
wget https://rclone.org/install.sh && sudo bash install.sh
 +
</syntaxhighlight>
 +
 +
=== เพิ่ม Google Drive ===
 +
รันคำสั่ง rclone config เพื่อเข้าสู่ interactive shell
 +
<syntaxhighlight>
 +
rclone config
 +
No remotes found - make a new one
 +
n) New remote
 +
s) Set configuration password
 +
q) Quit config
 +
n/s/q> n
 +
name> google_drive
 +
</syntaxhighlight>
 +
 
== link ที่เกี่ยวข้อง ==
 
== link ที่เกี่ยวข้อง ==
 
*[https://rclone.org https://rclone.org]
 
*[https://rclone.org https://rclone.org]
 
*[[Google Drive File Stream]]
 
*[[Google Drive File Stream]]
 +
 
== ติดต่อสอบถามเพิ่มเติม ==
 
== ติดต่อสอบถามเพิ่มเติม ==
 
* [mailto:supawit.w@cmu.ac.th supawit.w@cmu.ac.th]
 
* [mailto:supawit.w@cmu.ac.th supawit.w@cmu.ac.th]
 
* [https://teams.microsoft.com/l/team/19%3a0c78e248b5b64bb984916f19dc2e9d4f%40thread.skype/conversations?groupId=c8d4d9f1-57f7-4658-a716-a19d8f76cb00&tenantId=cf81f1df-de59-4c29-91da-a2dfd04aa751 Microsoft Teams : Admin IT CMU]
 
* [https://teams.microsoft.com/l/team/19%3a0c78e248b5b64bb984916f19dc2e9d4f%40thread.skype/conversations?groupId=c8d4d9f1-57f7-4658-a716-a19d8f76cb00&tenantId=cf81f1df-de59-4c29-91da-a2dfd04aa751 Microsoft Teams : Admin IT CMU]

Revision as of 07:39, 29 November 2018

บทนำ

มช. มีบริการ G Suite for Education จาก Google ซึ่งบุคลากรและนักศึกษาทุกคนสามารถเปิดใช้งานได้และ Google Drive ของ G Suite for Education มีพื้นที่เก็บข้อมูลไม่จำกัด บทความนี้จะแนะนำการใช้เครื่องมือสำรองข้อจาก Server เก็บไว้บน Google Drive แบบอัตโนมัติ

rclone

rclone เป็น open source tool ที่สามารถ copy file ไปเก็บไว้บน cloud storage ได้ และรองรับ Google Drive การทำงานจะคล้ายกับ rsync

ติดตั้ง rclone

wget https://rclone.org/install.sh && sudo bash install.sh

เพิ่ม Google Drive

รันคำสั่ง rclone config เพื่อเข้าสู่ interactive shell

rclone config
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> google_drive

link ที่เกี่ยวข้อง

ติดต่อสอบถามเพิ่มเติม