Picture this: Your computer, with all its countless files, documents, photos, and memories, suddenly crashes. Or worse, it gets stolen, and you’re left with nothing but frustration and regret. Sounds like a nightmare, doesn’t it? That’s precisely why data backups are essential in today’s world. It’s not a question of if, but when you’ll need them.
I started exploring options of taking off-site backups essentially on some cloud storage provider and that is when I came across rclone ↗️. Let’s explore what it is and how to use it.
Rclone ↗️ is a powerful, open-source command-line program designed to manage files and data across a multitude of cloud storage services. It’s versatile, robust, and, best of all, it supports a wide range of cloud providers ↗️, including Google Drive, Dropbox, OneDrive, and many more.
The beauty of rclone is that it doesn’t restrict you to a single cloud service. You can set up your files to be continuously and seamlessly backed up to multiple cloud storage providers, keeping your data even safer. Plus, rclone is supported on a variety of operating systems, making it a go-to solution for Linux, Windows, and macOS users.
Let’s take an example storage provider and set up rclone with it. I’ll be using Google Drive as an example.
Google Drive is a popular choice for cloud storage due to its generous free storage space, making it an ideal candidate for safeguarding your important files.
First, ensure that you have rclone installed on your system. You can follow the installation instructions from the official documentation ↗️ specific to your operating system. Once installed, you can start configuring your Google Drive backup.
Now comes the fun part. Open your terminal and type:
This command launches the rclone configuration wizard, which will guide you through the process of setting up Google Drive as a remote storage location. Follow these steps:
nfor New remote.
Give your remote a name; for example,
Choose the number corresponding to
Google Drive. which was 18 when I tried setting it up.
Client Secret,press Enter to leave them empty.
1for Full access all files, excluding Application Data Folder.
Option service_account_filepress Enter to leave it empty.
Edit advanced config?you can choose
nfor No. This step is optional.
But what I did was actually choose
yand then set
root_folder_idto the folder id of the folder I wanted to backup to.
I did this so that I can backup to a specific folder on my google drive and also choosing the scope as
drivemeans that rclone only have permissions to read/write to that specific folder and not the entire drive.
Use auto config?to
Y, and rclone will generate an authentication link.
Open the link in your web browser and log in to your Google account to grant rclone access to your Google Drive.
If your are running rclone from a headless system (which I was) then you won’t have access to a browser. In that case rclone will provide a link which you can copy and paste in your other device where you have browser and upon successful authentication you will be provided with a verification code which you can copy and paste back in your terminal.
Copy the verification code provided in the browser and paste it into your terminal.
Confirm the setup, and your Google Drive is now configured as a remote storage location.
This is it, you have successfully configured rclone with Google Drive. At this point you have your Google Drive (or a specific folder on your Google Drive) configured as a remote storage location and you can use rclone to copy files to and from it.
With your Google Drive remote configured, you can now use rclone to upload and manage files on Google Drive. For instance, to copy a local folder to your Google Drive, use a command like this:
You can schedule this command to run at regular intervals using a cron job, ensuring that your files are continuously backed up to Google Drive.
And there you have it! Your local files are now being safely and continuously backed up to the cloud using rclone.
No more worries about unexpected data loss or system failures. Your data is secure, accessible, and ready to be retrieved whenever you need it.
In the digital age, data is king, and safeguarding it should be a top priority. With rclone, you’ve got a reliable tool at your disposal to keep your data protected and accessible, no matter what life throws at you.
So, why wait? Start exploring rclone and make your data backup process a breeze. Your digital world will thank you.