Cloud Backup with Data Encryption using Google Drive, rClone, and Docker

  Рет қаралды 12,304

Jim's Garage

Jim's Garage

Күн бұрын

This video details how to use rClone to backup your data securely in the cloud, you can also find all of the config files on my GitHub. More specifically I cover how to:
- Set up a remote in rClone
- Create a project in Google Drive to grant access for rClone
- Create a config for rClone to mount to your container
- Deploy rClone in a Docker container (and Windows)
- Enable remote backups with a backup script
- Mount your cloud remote on your Docker host and in Windows (access your cloud storage as though it was a local drive!)
- Encrypt your backups using rClone to maintain your privacy
GitHub Files: github.com/JamesTurland/JimsG...
Discord: / discord
Twitter: / jimsgarage_
Reddit: / jims-garage
00:00 - Introduction and overview of topics covered
02:04 - rClone config with Dashboard
04:36 - rClone config with a mount in Docker
06:47 - Downloading rClone
08:00 - Using rClone to create a remote
09:14 - Create a Google Project to give rClone access to Google Drive
10:26 - Add Google Drive API
10:44 - OAuth Consent Screen
11:05 - Google Drive Scope for Application
11:50 - Create Google Drive Credentials
13:05 - Add Client Secret and Client ID to rClone
15:15 - Finishing remote setup in rClone
16:00 - Check rClone config file is correct
16:28 - Copy config to Docker container
17:05 - Deploy Docker container and access web GUI
18:28 - Overview of remote backup script
20:39 - Deploy rClone with a host mount to access files locally
22:40 - Viewing remote Cloud files as a local mount
22:58 - rClone mount in Windows
24:39 - Encrypted rClone backup
27:10 - Summary - Please Like, Comment, and Subscribe if you found this useful! :)

Пікірлер: 47
@boyy2411
@boyy2411 Жыл бұрын
Another amazing video from a super nice and helpful experienced IT Professional, definitely worth a watch and a subscription!
@Jims-Garage
@Jims-Garage Жыл бұрын
You're too kind! (Thanks 👍)
@SRG-Learn-Code
@SRG-Learn-Code 5 ай бұрын
THIS IS GOLD!!! What a great video, topic, explanation, everything!! This should be mainstream operations for any small business. I'm going to tinker with it right now. You have my respect and gratitude forever. Thanks a lot for sharing and for doing it with such taste and quality. You are the real MVP.
@Jims-Garage
@Jims-Garage 5 ай бұрын
Very kind words, thank you!
@garylovesbeer
@garylovesbeer Ай бұрын
Thank you for your clear and concise explanation of this process.
@Jims-Garage
@Jims-Garage Ай бұрын
You're welcome 😁
@iamaduckquack
@iamaduckquack 2 ай бұрын
Nice to see one of the Weasely twins doing well.
@Jims-Garage
@Jims-Garage 2 ай бұрын
It's been tough since deathly hallows part 2 wrapped up but managing to make ends meet.
@joeblissett3862
@joeblissett3862 Жыл бұрын
Great guide, big fat thank you! 👏
@Jims-Garage
@Jims-Garage Жыл бұрын
You're welcome, glad you found it useful ☺️
@JC-zl7sq
@JC-zl7sq Жыл бұрын
Thanks I was already using rclone but didn't know about the encrypt feature
@Jims-Garage
@Jims-Garage Жыл бұрын
Glad it helped, a really useful feature of rClone.
@saxinat0r
@saxinat0r 6 ай бұрын
This worked great. Thank you so much!
@Jims-Garage
@Jims-Garage 6 ай бұрын
That's great, appreciate the feedback
@MrQVeeBoo
@MrQVeeBoo 7 ай бұрын
hi, i use only cli in windows and wanna checksum for google drive and one drive. however, both seem to have different checksum algorithms. do you have any suggestions on this? i just wanna use google drive as the source and sync everything to one drive. thx.
@diginomad6016
@diginomad6016 Жыл бұрын
Commenting to trick KZfaq algorithm
@vikasgupta1828
@vikasgupta1828 7 күн бұрын
Thanks
@Jims-Garage
@Jims-Garage 7 күн бұрын
@@vikasgupta1828 you're welcome 😁
@gmansi
@gmansi 11 ай бұрын
Thank you very much for the video. Question: can this technique be used with restic too? Because synchronizing is not the same as backing up.
@Jims-Garage
@Jims-Garage 11 ай бұрын
Yes, you could mount a cloud location to your host, and then save restic to that mounted location. rClone should then upload and sync it automatically.
@gmansi
@gmansi 11 ай бұрын
@@Jims-Garage Thank you very much for the answer Jim, but I was referring to the technique of creating "snapshots" instead of synchronizing
@leodsouza5272
@leodsouza5272 Жыл бұрын
We can proceed without the client id and secret , or is it mandatory to have this client id for Rclone
@Jims-Garage
@Jims-Garage Жыл бұрын
If you're connecting to Google Drive you'll need them. They're basically your login credentials. Other providers might have something different. Check the documentation on the rClone website for specific remotes.
@conan1231
@conan1231 6 ай бұрын
I'm kinda stuck and don't get it how I can now create a shell script to automate the sync process and send me the logs to my gotify service.. I have my script: rclone sync "$source_path" "$destination_path" --log-file="$log_file" --log-level INFO but I can't get it automated as an cronjob in the docker-compose config, also there I can't get curl installed in the docker for the gotify notification part. A demonstration of a Backup Script with Logfile creation and automatic notification with gotify would be a nice tutorial.
@nihoniumog5185
@nihoniumog5185 Жыл бұрын
Do you really need to do the google console credentials? Wouldn't rclone default config be enough?
@Jims-Garage
@Jims-Garage Жыл бұрын
You need to specify an external cloud provider (or use local), and the cloud providers will be authenticated. The Google cloud one is perhaps the most complicated but it is popular. I suspect that the other, smaller providers might be more straightforward (e.g. just a token).
@user-nk2lz6ir5r
@user-nk2lz6ir5r 6 ай бұрын
I wanted to ask, if you want to get the data that was encrypted to GoogleDrive, how do you decrypt it?...Wonderful Video, well explained.
@Jims-Garage
@Jims-Garage 6 ай бұрын
You mount it with rClone. Then it's a simple case of copying like regular files.
@antonevseev2708
@antonevseev2708 7 ай бұрын
Hey Jim! Can you please give a tip and link to docs of how to run the remote sync script from the Rclone dashboard, using the script files, which we mounted into the container? Im lost here, sorry.
@Jims-Garage
@Jims-Garage 7 ай бұрын
Sync_script is mounted into the container, remote-upload goes onto a user machine for manual execution.
@antonevseev2708
@antonevseev2708 7 ай бұрын
ah, i see now! It works, thanks a lot@@Jims-Garage
@FilipeNeto616
@FilipeNeto616 3 ай бұрын
@@Jims-Garage Didn't quite understand how the sync-script can be triggered, shouldn't be automatically triggered whenever there is a new (changed) file on /home/ubuntu/truenas folder?
@Jims-Garage
@Jims-Garage 3 ай бұрын
@@FilipeNeto616 no, the script is not automatic but can be run as a cron job, a mount would automatic as it's essentially a network share.
@dav1dw
@dav1dw Ай бұрын
i finally got rclone to mount and jellyfin able to see the files. I last hurdle that finally did it was I had to restart the Jellyfin docker to reinitialize it after it was already mounted. I don't know, maybe it would have refreshed eventually but I'm not a patient man.
@Jims-Garage
@Jims-Garage Ай бұрын
Nice one, I used to have a similar setup.
@dav1dw
@dav1dw Ай бұрын
@@Jims-Garage I forgot to add, I used the encrypt and union to combine 5 remotes into one remote.
@Jims-Garage
@Jims-Garage Ай бұрын
@@dav1dw that's great. I haven't managed to use that yet!
@racingtheweb
@racingtheweb Ай бұрын
What happens if my laptop, which I installed rclone from, is broken or stolen? How can I read my old encripted gdrive files from my new laptop? Thx
@Jims-Garage
@Jims-Garage Ай бұрын
Keep a copy of the encryption keys, that's all you need.
@racingtheweb
@racingtheweb Ай бұрын
@@Jims-Garage So do I need to create a new remote, edit the previous one, or what? Where am I supposed to enter my old encryption key? Sorry to bother and thanks
@Jims-Garage
@Jims-Garage Ай бұрын
@@racingtheweb All of that is held in your config file. Simply copy the file and reuse it. Location varies depending on OS (but it's very quick to be up and running again).
@racingtheweb
@racingtheweb Ай бұрын
@@Jims-Garage Ok I'll check this out, thank you
@dav1dw
@dav1dw Ай бұрын
you should always backup your rclone.conf file, but if your laptop is stolen, you probably want to rotate your keys or passwords just in case.
@conan1231
@conan1231 6 ай бұрын
Why did we do the extra hustle on creating the config on the Windows Host and copying the config to the Linux Host. It seems that you can create the config way more straight forward with the rClone GUI after the Docker Deployment. edit: okay I get it, the gui sucks xD
@Jims-Garage
@Jims-Garage 6 ай бұрын
Yeah... I hope it is improved over time.
Create a FREE, PRIVATE, VPN with WireGuard - How To
11:44
Jim's Garage
Рет қаралды 12 М.
I Hope Google Doesn’t Ban Us... - Abusing Unlimited Google Drive
12:39
Linus Tech Tips
Рет қаралды 6 МЛН
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 5 МЛН
Is it time to switch? // Docker vs Podman Desktop
16:05
Christian Lempa
Рет қаралды 226 М.
Do This Before Putting Your Files in the Cloud
12:56
Mental Outlaw
Рет қаралды 161 М.
Self Host Tailscale with Headscale - How To Setup
21:51
Jim's Garage
Рет қаралды 62 М.
Sync Google DRIVE in Linux Using Rclone
21:07
STÆMPUNK TV
Рет қаралды 37 М.
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 230 М.
How to Properly Use Cloud Storage | Rsync Encrypt Tutorial
22:55
Chris Titus Tech
Рет қаралды 56 М.
Use Rclone to Effortlessly Sync Cloud Files with S3 Storage
4:36
Akamai Developer
Рет қаралды 4,5 М.
Rclone SMB Mount on Ubuntu/LXC - 💪The Power of Caching
20:32
SmartHomeBeginner
Рет қаралды 7 М.
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 1,7 МЛН
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 2,4 МЛН
Vision Pro наконец-то доработали! Но не Apple!
0:40
ÉЖИ АКСЁНОВ
Рет қаралды 392 М.
Сколько реально стоит ПК Величайшего?
0:37