So in this video, what were going to be doing is finally getting that data over from google with the next cloud: google migration tool. Now this is awesome its going to let you bring in all your calendar events. All your contacts, all your photos. Everything on google drive with a click now its its not going to be just a single click. Its going to be a couple different clicks because were going to have to go onto the google cloud dashboard and set up some things to get this all integrated properly. But were going to do everything and show you everything you need to know in this video. Additionally, at the end of the video, were going to do a quick tip on actually backing up and restoring your next cloud instance. If you happen to have followed the first video and used the snap installation method, but before we do any of that, i would like to thank the sponsor of this video, and that is the node. The node has been sponsoring these next cloud. Videos, one because theyre awesome and two the node is a wonderful platform to actually use nexcloud on, and not only can you use nexcloud on it. You could do basically anything that youd want to do on a linux server instance, whether that be game servers hosting your wordpress websites and the other type of websites. Your applications, media servers. The list goes on and on the node is the largest independent cloud service provider out there and with that they have data centers all over the world, so chances are youre going to have one nearby and youre going to have incredible up and down load speeds.
I know i do on my gigabit internet connection when im downloading things from one of my the nodes, i usually downloads in 10 at the low end to up to 50 megabytes per second, so that is wonderful. Overall, everything else about it has been great ive, been using it to build a minecraft server, and that has been a phenomenal experience, ive needed to use their support tickets a couple of different times and each time they respond very quick, very helpful. Overall, they are a complete pleasure to work with and, speaking of, if you want to try out lenode for 60 days, you get a hundred dollar credit. If you go ahead and use the link in the description or go ahead and go over to lenode.com forward, slash tech hut, so go claim your credit today and then you can follow the other two uh next cloud: videos that ive done and then follow this one And get completely set up and move towards d, google flying google finding your life. So again, thank you to the node. You guys are awesome. Thank you for sponsoring this video with that said, what were gon na do is jump onto a next cloud instance and link it up to google. Now, at this point, im assuming you already have the instance set up im doing this with a domain connected to it. With a certificate already enabled, so, if you havent done any of those steps, id suggest you go watch the first video i did on actually installing it and once you have everything set up and ready to go.
You can now do this, so this is the google account that im going to be demonstrating this with you can see theres really not a lot going on. This is an older account, but i have some pictures here. If i go back, you can see. I set up two test events in my google calendar and then, if i go back again, you can see. I have a google drive with quite a bit of older things in it, but i want to sync this over to nexcloud now, like i said this is a fresh install of nexcloud, so you can see my pictures are just the default. If i go over to contacts for example, you can see, i have nothing there go over to calendar, you can see. I have no events scheduled so to go ahead and begin the process. What were going to want to do is click on our little profile. Here. Go under applications and then were going to want to do a simple search for google. So right here we have google integration. I already had it downloaded once, but you could go ahead and click download and enable for me im just going to click enable and then from here youre going to want to click on your profile again and go over to settings now when youre in settings youre Going to want to go to this panel over here under administration and go down to connected accounts, and then here is our google integration page, and this is where were going to be inputting our client id and secret id a little bit later.
But for now what were going to want to do is go to this google ipa settings link here right click and open that up in a new tab. So now go over to that new tab. This is the google cloud platform page were going to want to go ahead and create a project real quick, so from here youre going to want to give it a project. Name, im just going to call this next cloud for now and when you put in a project, name, go ahead and click on create and now with our next cloud project created were just going to go over here to the side, click on credentials and from here Click create credentials and were going to go with the xero auth client id right here. Next youre going to want to click, configure consent screen and for the user type youre going to want to select external click. Create – and here is your app information, basically were making one of these things that you see when you log into other services, with your google account but youre, creating this access for yourself, so youre going to want to give an app name again. You could call this really whatever you want im going to kind of match, with the domain name im using, which is cloud type, which is just for demonstration purposes, im going to do cloud next cloud and now under user support, email, just click this and add the Email associated with your google account and then from here scroll down to the bottom, and we have our developer contact information id recommend just putting that same email right here and when thats done were going to want to go ahead and save and continue.
And now, when youre on the scopes, page youre just going to want to click, save and continue for test users, youre going to want to add a test user. And here make sure you input the email that is associated with the google account that youre going to want to be migrating over to next cloud. Click, add click, add again and then click save and continue. Now, when youre on the summary page, you can just scroll down click back to dashboard and then from here were going to want to go over to credentials again and then once more create credential. The xero, auth, client id and now from here were going to go ahead and select a web application go ahead and give it a name im just going to call this next cloud. And now what were going to want to do is input an authorized redirect url and to get that were going to want to go over to our google integration page under next cloud, and it says right here make sure you set one authorized redirect url to this. So were going to go ahead and give this a copy. Go back over to the google cloud platform, authorize user urls were going to add it paste and then go ahead and create that, and now that our client has been created were going to want to go ahead and copy our id and our secret key. So give that a copy paste that in here go back, give that a copy and paste that in here so now, what were going to want to do is add our libraries that way that this can actually sync up properly with the various google services.
So to do that were going to exit out of here and, while were over in api and services, were just going to go ahead and click on library, and here is where were going to actually search for api and services. Now the first two were going to want to add: are the google drive and calendar api so to add them? You just go ahead and click on it hit enable – and this may take it a couple seconds, but when its done it should refresh the page there. We go and then, when you do that, youre going to want to click the little hamburger menu right here, go under api and services go to library, scroll down and now lets go ahead and enable the google calendar api enable that, and now we have two more To enable so go back over to library and its not going to display on this page, so what were going to want to do. First is search for people and then right here we have the google people api go ahead and do this one hit enable and then we have one more so go under library. This time were going to search for photos and then we have the photos. Library api go ahead and enable that, and now everything should be set up, that we should be able to go over to next cloud here and actually connect our google account. So to do this were going to want to go back over to our settings page here and instead of going under administration were going to go under personal and click on data migration, dont update that and here were going to go ahead and connect to google.
So when you go ahead and click on this, its going to ask you if youd like to continue to whatever domain name is here, make sure you choose the proper email address that youve been using this entire time to set up the account so give that a Click now the application is not yet verified because you just made it, but you made it so it should be safe. Lets click continue and here, youre, giving your specific next cloud instance permission to do everything you see, including access. Your google files, your contacts, your events, your photo, libraries, etc so were just going to want to go ahead and click on allow, and you can see we have successfully connected our google account uh. For some reason it automatically started. The google drive thing: if you dont want that you could click cancel now real quick. I just want to interject here this test account. I did a couple different times, so there were some issues with it because i created multiple apis, but if you follow the instructions you shouldnt have any issues. This right here is the window of the next cloud instance. I use every day and you can see the drive, the google photos and everything – and this is set up correctly, but just know this demo account did have a couple issues that you shouldnt really experience unless, if you end up doing this multiple times but thats also Going to go ahead and import our photos but, for example, lets go ahead and import our google contacts import them into the google contacts import there.
We go 32 contacts successful and now lets go ahead and import my calendar here. So if i go import calendar you can see. Five events have been successfully imported so now, for example, if i go over to calendar, youre gon na see these two test events that i originally set up in google now here it was taking a little while to get those uh files into my next cloud instance. So here is what it looks like on my actual next cloud instance that i use on a daily basis. You can see all my photos in there organized properly. I have a bunch of different files that was imported from google drive. Overall, it is a awesome tool and it saved me a lot of time and if youre somebody who is switching over to next cloud and youre, not really using those google services anymore, you can actually disconnect google now that you have all your data in there. You dont need to keep it synced if you dont want to that is completely up to you and, with that said, were going to move on to actually backing up and restoring your next cloud instance again. This is done with the snap package, but overall it is a fairly simple process. Now backing up and importing a next cloud instance thats installed through the snap package, is significantly easier than doing it with a manual installation. Easy enough. It is done with a simple command.
Were just going to want to run sudo nextcloud.export now, instead of just running that, i do recommend opening up the help page because thats going to give us some more information on the things that we can actually do. You can see that exporting data here is suitable for migrating servers, so, for example, if you want to go from a local to the node vice versa, you could use this to do that and by default. This will include the next cloud database configuration and the actual data that youre storing. Now there are some additional options through selective backup, so you could add these tags to the end. So, for example, if i only wanted to export my config, i would just go ahead and add c and thats all it would go ahead and export, or i could do d for just data. I could do the default or i could go ahead and enable everything. So that would be a b c d to completely back up my entire next cloud instance, including the applications i have now. What im going to do is actually go ahead and run it so lets hit enter and you can see now it is exporting all my applications, the database, the config and just about everything. Now this was the instance i just installed, so there really wasnt that much data. If you have a whole bunch of things on your next cloud server chances are. This is going to take a long time now, if youre curious to where this is actually saved.
It is in the var, slash snap, slash next cloud if we go ahead and migrate over there to an ls theres, a folder called common, so lets go ahead and cd into there do an ls and then youre going to see a folder called backup. So if we go ahead and take a look at that, you can see if i dont capitalize it you can see. This is our backup that we just created now one of the better ways to go ahead and export this and save this locally or somewhere else. Just in case is to go ahead and archive it in a tar folder, so lets go cvf and then we can go ahead and give our new file a name. So lets just go 09021 for the date and well call it nx, backup, dot, tar and what were going to want to do is point this at the proper directory. So just to save some time, we could go and give this a copy paste it on over. Here add the forward, slash and then add the directory, which is this so paste that in hit enter its going to go ahead and compress and archive everything. Now, if we do ls, you can see our new backup right there now when it comes to importing. Instead of backing up its important to note that, if you run this import command its going to completely destroy any data thats currently on the next cloud instance.
So if youre going to import youre going to want to do this on a fresh installed instance of nexcloud and just like backing up, you would do this pretty simple, its just sudo nextcloud.import and then a path to the directory in which your backup is saved. So for this example, we would just grab the directory were currently in backslash, the actual directory, where those files are stored, copy paste and for you, its probably not going to be in this location, you can put it in your home directory and point the import to There or wherever you happen to upload these files, so we just go ahead and hit enter and its going to enable maintenance mode and begin overwriting. Your current next cloud instance with the imported backup. Now everything i just told you is from this page right here from the official next cloud, how to backup snap instance guide, so this will be linked down below so that wraps up this tutorial. Thank you so much for watching, and i would especially like to thank our youtube members and patreon supporters, mitchell, valentino phil, mack, kyle and teemo anthony. Thank you guys so much you are some top tier patreon supporters. You guys are wonderful and thank you to all the other techie and techie plus members again therell be a link to a playlist, so you can watch all the other next cloud. Videos, including, if you need to re watch this one down in the description uh subscribe, ring that bell, so you dont not miss any future.