Catatan backup data dengan mempergunakan rclone
July 27, 2021•760 words
Salah satu risiko dalam penggunaan perangkat komputasi adalah mengenai data. Data (termasuk informasi) yang disimpan seringkali bahkan lebih berharga daripada hardware maupun software yang dipergunakan.
Sekalipun tampaknya tidak ideal sebagaimana proses rsync yang diinginkan, penggunaan rclone dapat membantu mempermudah proses replikasi data.
Karena ada banyak hal yang perlu saya pelajari dan ingat, maka sangat kecil kemungkinan untuk dapat mengingat perintah-perintah di rclone. Untuk itu beberapa perintah yang kemungkinan paling perlu dan akan palin sering dipergunakan, contoh formatnya saya paste di Boost Note atau massCode atau Standard Note atau Joplin. Bisa salah satu atau lebih dari aplikasi note-taking tersebut.
Dari pencarian informasi dengan Google, diperolah banyak sumber yang bisa diperbandingkan. Beberapa yang saya anggap bagus untuk dipakai sebacai acuan saya sertakan di bagian bawah. Untuk efisiensi, banyak keterangan yang sudah baik dan jelas, tidak diduplikasi di sini.
Snippet:
rclone version
rclone listremotes
rclone config
rclone lsd remote:
rclone ls remote:
rclone lsf GDriveRemote:RCLONEdriveRemote
rclone copy <flags> source:sourcepath dest:destpath
rclone copy --transfers 20 --retries 5 "/home/dev/g" "gdrive:/mybackup"
rclone copy /home/source remote:backup
rclone copy ~/Desktop/Cards aibanezDrive:/Cards
rclone ls GDriveADR1:FolderLuar/FolderDalam
rclone copy /home/arun/Documents/linoxide/ gdrive:linoxide
rclone copy -v --progress ~/folder/file.txt gdrive:test
rclone copy backup.tar.gz encrypted:
rclone copy aibanezDrive:/IMG_1434.JPG ~/Desktop/Cards
rclone sync <flags> SOURCE remote:DESTINATION
rclone move source:path dest:path [flags]
rclone check source:path dest:path [flags]
rclone --dry-run --min-size 100M delete remote:path
rclone copy burry.txt encrypted:
rclone ls namaRemote:FolderLuar/FolderDalam
rclone ls encrypted:
rclone copy encrypted:burry.txt ~/FolderLaptop
Mount
- mkdir grive
- chmod 755 gdrive
- rclone mount remote:path/to/files /path/to/local/mount
- rclone mount --dir-cache-time 96h --cache-info-age 100h --vfs-cache-mode writes --allow-other --log-level DEBUG --log-file /(folder-name)/rclone.log (remote-name): / /(local mount folder)
- rclone mount -daemon --dir-cache-time 96h --cache-info-age 100h --log-level DEBUG --log-file /myGD001/rclone.log namaRemote:FolderLuar/FolderDalam2
- rclone mount --daemon
namaRemote:FolderLuar/FolderDalam ~/CloudDrive001
"rclone
Supports a whole lot of commands as listed in their Documentation. Some
useful ones are sync (it keeps a remote directory in sync with a local
one), move, delete (remove the contents of a path), purge (remove a path
and all its contents), ls (List all the objects in the specified path),
lsd (list all the directories under the path), mkdir, and rmdir.
Some
interesting flags you can use with your commands include but are not
limited to --bwlimit, to limit the amount of bandwidth rclone will use,
and --transfers to limit the amount of files that get transferred in
batch." ~ https://www.andyibanez.com/posts/rclone-basics-encryption/
Links:
- How to Encrypt Google Drive using Rclone
- How to sync from Linux to Google Drive with rclone
- Using rclone on Linux to Automate Backups to Google Drive
- How To Encrypt Cloud Storage Files With Rclone
- rclone: From Basics to Encryption
- Rclone. Access to Google drive under Linux.
- Rclone - Sync File and Directories to Cloud Storage in Linux
- Cara Install dan Konfigurasi RClone Untuk Backup Data ke Berbagai Layanan Cloud
- https://rclone.org/downloads/
- https://rclone.org/drive/
- https://rclone.org/drive/#making-your-own-client-id
- Google Drive for Developers: Authenticate your users
- Google Drive for Developers: Store application-specific data
- https://rclone.org/commands/
- https://rclone.org/flags/
- https://rclone.org/crypt/
- https://rclone.org/googlephotos/
- How To Set Up Rclone For Linux [ YouTube ]
- How to Mount a Google Drive Locally with Rclone [ YouTube ]