Backing up with Rclone to Google Storage Bucket

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys welcome to Starbucks in this video I'm going to show you how to backup your Mac using Google cloud platform if you don't have a backup system for your Mac whether it's an iCloud or Google backup this is a good affordable backup for you I'll be showing you how to backup your using our clone then show you how to schedule that backup and then show you how to encrypt and decrypt your files so you can back them up okay to start we'll go to our Google Cloud console let that load then go to your menu tap left look for storage and then browser from here let's create our bucket and we're gonna name our bucket so we'll name it as Mack underscore backup 2020 that's how creative I can be now click continue for location type you can pick multi-region dual region a region I just want minor in region if you pick multi-region it's slightly more expensive and then for location I'm going to pick central then click continue for default storage class you have an option for a standard Nearline code line and archive on the right you'll see your monthly cost estimate for example if you have a terabyte of files it will cost you $20 per month and the retrieval the data retrieval is free if you pick near line that's slightly cheaper but the data retrieval is not free same with code line and archive now depending on the functions of your backup pick the most appropriate one for you on my case we're going to use the archive so click continue choose how to control your access and objects we're going to leave it at fine grain fine grain is more secure but the uniform is good as well if you're the only one accessing the files for Advanced Settings we're going to leave that as Google manage key do you have an option to set the retention policy this will ensure that your files doesn't get deleted accidentally when that's all done click the Create button great that's all good it has now been created the next thing we want to do is install our clone you can drag all your files over here but if you have a lot of files and larger files it's much easier to use our clone so to start open a new tab now search for our clone or you can simply go to our clone that art our clone has been around for a while you can read all the descriptions here but you can actually use this for your AWS services as well Dropbox or Google Drive now let's click the download button so we have two options to install here you can either click this button over here that will download the our clone but for me I think the best solution is copying this terminal command and then pasting it on your terminal so open your terminal application on your Mac and then paste that command then hit enter and it will ask you for the admin password enter that and then watch the installation so great now our clone is installed you don't need to do anything anything else all you have to do is execute the command we'll start with our clone config we're gonna create a new remote connection so press em and then type in the name of your remote connection I'm gonna name mine gzp backup 0 1 your name can be anything estancia's alphanumeric and there's no spaces once you've established that hit enter then the next thing is asking is what type of storage are we connecting to so let's look for a Google Cloud storage ensure that it's not Google Drive because they're pretty close so in this case is number 12 it might be different depending when you watch this so type in 12 hit enter and now for client ID you can leave it the default which is nothing hit enter for client secret you can leave it blank as well so hit enter again for project number we're looking for the project number on our goal cloud storage so let's go back to our Google Cloud Storage bucket and then go to your settings and you should see your project ID there copy that and then go back to terminal and then paste that to the project number hit enter for service account file we're going to leave that blank so hit enter for object ACLU want to pick number four which is object owner gets owner access then hit enter for a bucket ACL we wanna pick number two which is project team owner gets owner access the ACL is the access for each folder on the previous one we just did the owner and then on this one we just did the project for a bucket policy we're going to use the default so hit the enter now we need to set the bucket location we've actually picked out already we had Central earlier so I put 16 so pick the best location for you for storage class I've already picked archive earlier so pick six and then hit enter for advanced config we're not going to edit that so let's press Enter or n now for remote configuration this will connect to our bucket so let's press Y on that and then hit enter it will open another browser that will ask us to login to our bucket so we just can login put in your password and enter the 2-step verification once that's connected it will ask you to allow our clone to connect to your Google bucket click allow and then we are connected now go back to your terminal it will give you the summary of the configuration including your token and once you're good with that press Y and then hit enter and we're done configuring a remote so press Q to quit and we are ready to execute the our clone backup command so I have files on my desktop folder that's what we're gonna test to backup and name the documents now to back this up let's go back to terminal type in our clone space and then sync and then the location of the folder the easiest way to do that is dragging the folder to terminal and then we need the remote connection name followed by colon followed by our bucket name I'm just gonna copy here and then paste it over there once that's good hit enter since I want to have a few files and should be pretty quick to back this up and there it is it's done we can check this by going to our bucket refresh this bucket and it should have five files in it there it is we've copied all the images from your bucket you can easily grab files here by clicking at three dots and then you should give you a menu and then pick download now the next thing we want to do is show you how to schedule this backup so go back to your terminal and then type in crontab space - e crontab should be installed on your Mac already you don't need to pre install this so you should be good with that to start typing on this window you need to press I on your keyboard and this will allow you to type now to start with the command you need to type in five asterisk separated by space then we need the our clone command that we just executed which is our clone sync the source and then the destination now the asterisk is represented by specific time if you want to schedule your our clone command at 11 a.m. then you want to put 11 here and then 0 0 in the first star but then if you want to schedule it for 11:00 p.m. you want to put 23 over here before you rely on York on top the best way to do is leave all file asterisk this will execute the command every minute or if you want to be sure put a slash one after that first asterisk this will also actually that command every minute oh and another thing I forgot you need to add slash user slash local slash bin before they are clone command that is our command so the next thing we need to do is just save this so hit escape on your keyboard to get out of the editing mode then press shift ZZ to save the document you will then give you this warning which you need to allow he basically means that there's an automatic command that will get executed on the background now we just have to wait a minute for the command to execute I did add more files in that folder so we should see some changes when we refresh the page that looks good it executes our command properly now if you have a confidential files that you want to encrypt before you back them up in a cloud I'll show you how that's done now let's go back to our terminal application and type in our clone config we want to create a new remote so press n then name your remote I'm gonna name mine GCP encrypt 0 1 then hit enter now this is where we're gonna pick the encrypt so scroll up a bit and it should be number 10 alright so type in 10 here and then hit enter so over here you we need to put a pass on where it's gonna back up so we need the original remote that we created which is TCP backup 0 1 followed by Collin and then a slash and whatever name you want which will create a separate bucket inside your Google storage ok then over here you need to choose the type of file name and Christian that you want so you can't go wrong with any of these I'm gonna pick two then it's going to ask you for a file folder encryption you can choose to if you want your file folders to be readable when you look at it online then the next thing it's going to ask is a password for your encryption you can choose to either create your own or generate a random one so I'm going to create my own password and then confirm it I made a mistake so confirm it again I'm going to retype it so now you need to create another password you can leave it blank but just to make it secure I'll create another password for this so we're done press why to finish and then Q to quit the configuration now to execute this command we're going to do exactly the same thing as we did from the last sync which is our clone sync the location of the folder I'm just going to show you I have a new fault that I created which has few dummy files in there then I'm going to drag the source folder onto our our clone sync then put in the destination which is TCP encrypt 0-1 and then I'm gonna add a folder so I'll put Collin and then whatever folder name you want which I'm gonna name it the same as our previous backup then hit enter it should be pretty quick because I have very small files in there so if we check our Google Cloud bucket we should have a new bucket they're called encrypt and if we click that we should have a new folder in there called Mac backup 20:20 click it and there are our files as you can see we have four files in there and the file name is obscure now you can download the file here directly to do that click on these three dots here and then click download but if you do it this way you actually won't be able to open the file you need to decrypt the file first using our clone sing before you can open the file so even if we try to open this I know this file is an excel file based on the file size I'm just gonna add an extension here which is the Excel extension can I click use if you try to open it it doesn't know what file that is by the way if you're finding value on this to Charles so far please help me out and click the thumbs up button so to decrypt our files we need to go back to terminal and type in our clone sync and then we're gonna switch the place here you're gonna copy this part here we're gonna use this now says source and then we'll use the Downloads as a destination now be very careful when you do this because this will sync your destination this means that we'll copy everything from the source to the destination as you can see my downloads folder now has all the files from our bucket but it actually deleted any old files that was there so if you just want to grab the files without deleting the destination folder you need to execute our clone copy instead if you have any questions regarding this tutorial please leave it in the comment below thank you for watching I hope this video helped you [Music]
Info
Channel: StuffedBox
Views: 2,124
Rating: undefined out of 5
Keywords: google bucket, google storage, rclone, free backup, online backup, automatic backup, scheduled backup, upload to google cloud, google storage bucket, encrypt a backup, decrypt a backup, backup to google, crontab
Id: A7ptvDEyaTE
Channel Id: undefined
Length: 13min 14sec (794 seconds)
Published: Tue Jul 21 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.