 Tom here from one system and RAID is not a backup, but backing up your TrueNAS to back plays is a backup And it's a great way to back up. We've been using back plays for a while and specifically I wanted to mention There's no affiliate links for back plays. We're not a reseller of back plays This video is not endorsed by back plays I just want to get that out of the way to let you know that back plays is a company We have been using by choice not because there's some other commission involved in it But we do like their pricing. It actually is really good We'll get to that in the details of the video and all the details of course are time index down below If you'd like to learn more about me and my company head over to laurance systems calm If you like to hire sharp project There's a hires button right at the top if you like to help minimize the sponsors on this channel and thank you to everyone Already has there is a button here to join YouTube or patreon and your support is greatly appreciated And there's links down below where to get cat shirts and other fun things But there is no back plays affiliate link like I said now First why back plays and according to their marketing. They're the easy affordable trusted storage solution now We use them for more than sure Nass We actually use this for some of our WordPress hosting backup and lots of other little things to keep the topic on topic We're gonna talk though just about doing it with true Nass But I always bring it up and mention they have all kinds of support like their b2 command line tool for their b2 buckets They have all the pricing breakdowns Very available and I'll leave links to all this So if you need to calculate some of the storage pricing including an entire storage pricing calculator And there's a little bit of nuance when you get into cloud bucket storage because that's why I brought up that they have these Transaction prices, but nonetheless, they're very public about everything so you can calculate up front How much it's gonna cost you to store a set amount of data because this question comes up quite a bit when people ask Well, what if I had a 200 terabyte server that's a lot to back up. Yes, it is. Yes You should back it up. Ideally you'd want at least two copies on site I know that could be challenging because well when you build out a 200 terabyte server That's not cheap then when you want to build a second one to have a mirror of it in your office for redundancy That's not cheap and backing up in back plays good news is that's relatively cheap to back up a lot of storage But we want to go and jump right into the details here of exactly how it works first when you sign up This is actually something I really like is you get 10 gigs of free The first 10 gigs is just free. So without a putting in a credit card This is something I've liked and hopefully they continue doing this So if you're watching a future and if just continue the service, sorry But as of right now you get 10 gigs for free all you have to do is verify a phone number that you have that you Can receive text messaging at and verify your email address But not put your credit card in and you'll get 10 gigs of free storage, which is pretty cool In their storage pricing and we do actually pay for and have a business account where we have a lot of buckets and a lot of different Permissions and all the details set up properly and it's still very reasonable for volumes of data that we back up on here I've been really happy and the restores have been really reasonable as well They also do support if you need to ship them drives because you're bandwidth constrained and you need to get 400 terabytes to them They do have a seed option to do the initial seed and they'll mail you drives back if you need data back They got all those options, but now let's actually get started with exactly what our buckets and how does that work? So I've already signed up this demo account. That's why there's nothing here and yes I'll be exposing API keys here that will be destroyed later So yeah, don't worry about it. No need to let me know time. You forgot to blur something out I didn't forget to blur anything out I made sure I don't have to blur anything out because I'll be destroying all these buckets of random data I create so let's go ahead and create a bucket and this will be the true NAS backup bucket now When you're creating the buckets you can only create a hundred buckets per account as of right now in April of 2021 But you can create as many subfolders or files in the bucket So you may want to create like one bucket for a particular type of storage and then create like if you have a group of true NASs You can have them all Going all into the same bucket for simplicity We're only gonna create one bucket and then one subfolder underneath But I just want to give people the idea and of course because you can sign up for free It's pretty low risk for you to mess around with these so we're gonna go ahead and say backup bucket name TrueNAS YouTube Demo so there we go Do we want it to be private or public now? I do like that it defaults to private and the idea and we're gonna only really use the private one But the idea would be if you do set the public bucket up You can upload a file and then share out that particular file to someone let's see you have a large video You wanted to share you could set the bug bucket to public upload it from TrueNAS not using the encryption we'll get to that shortly and Then you would be able to share out that file and use their bandwidth in order to allow people to download it and We actually have some video editing clients that do this So just create things have a synchronized with the bucket and then they go ahead and Create a share link to that particular bucket file But that is required that you don't encrypt things ahead of time You don't do the encryption here They have no knowledge of the encryption because I know there's already some people that may be wondering about how do you trust back plays I don't trust any cloud company just add back place at a list of my zero trust you encrypt beforehand We'll cover that in the TrueNAS system Encryption and I this is why I brought that up. They do have it. I don't bother with their encryption I'm gonna encrypt it on my own and manage my own encryption so it has no relationship to how they handle it So I'm gonna skip over that right here So we're gonna say private disable and for now we're gonna leave this disabled but they do have an option to make certain things immutable and This is really important where you may want things to head up there to archive But never have the ability for the bucket to be deleted any of the files in that particular bucket But we're gonna go ahead and leave it like this So here's our TrueNAS demo and we'll leave it pretty much like said default here having the bucket We have to go over to TrueNAS and put the bucket information in but we're gonna do that with an API key So we're gonna go here the app keys and we're gonna create a new one add new application key Tom's TrueNAS Demo key what bucket does this have access to this right here read and write read only these are permissions You can set or allow listing bucket names if you're using s3 compatibility the for the Amazon s3 storage type You'd have to check that we're not going to file name prefix Sure, why not? We'll call this YouTube demo and we're gonna head and create that key now of note this application key right here that was generated for us We are going to copy it into the clipboard or I could just you know, right-click and copy it When I go off this page or refresh this page that goes away. I do not get to see it anymore So make sure you get a copy of this key. So we'll go over here and Here's where we put it inside of TrueNAS. So you're gonna system under cloud credentials We already have one bucket here for my production system the foreshadowing. Yes This does support Google Drive and a lot of other systems I'll be doing some future videos on that more specifically like the Google Drive. I got a demo on that We've been using and we're gonna hit add We're gonna head and choose back plays B2 Call it YouTube demo and We're gonna put the application in here and we're gonna go back over to here and Put the key ID in and hit save now Those are the only things you need to have we can verify credentials to verify those work credentials are valid hit submit And now we have them now what you can get those back out By going in here and clicking edit you'll be able to see the key ID and the application ID that pair we created has whatever parameters and in security and we'll actually just go ahead and Click on a different spot click back over here Now we can't see it. So we can delete this key, but we can't edit it We can't change it. So if I were to lose that TrueNAS information It would be gone good news is when you back up TrueNAS It'll back up the key information you have when you do the backup file inside of TrueNAS itself like the configuration back up But now we've got this bucket created. We've got it allowed to talk to this bucket right here here's the capabilities of it and Now we can actually go inside and set the task up So this is all ready to go and we're gonna go over here to tasks and we're gonna go over to Cloud sync tasks and we're gonna add one and this is where they've done a great job of making this easy so we'll go here and It was called a demo on flea typing as much which the credentials you're gonna choose not production, but YouTube demo one Perfect. There's our YouTube demo. Are we going to pull or push now? This can also be used completely in reverse for example I mentioned we use things like WordPress backups that we have all landed in a bucket in that case We would like a copy local we host WordPress in the cloud not on any local servers we have physically in my building and You can then take the back place buckets that we've created through our hosting accounts that are all going over to back place for a landing spot But you know one spot is not necessarily in case something ever happened to back place a good idea So then you can create another copy then another cloud source provider or in our case We can pull all the data back out So this does work in reverse if you wanted to have a copy but in this case I want to back up my TrueNAS to back place So we're gonna do a push and do you want to copy sync or move generally speaking? You're gonna want to sync Copy will keep doing it over and over again without checking if those files are there It'll just go let me send all the data again Let me send all the data again and obviously that may not be what you want You want an initial upload and then synchronize the changes that are occurring So we chose sync and it also lets you know that they will be deleted That's back to if you would have clicked the immutable option for the bucket So if a delete happens locally, it doesn't get pushed up there But you get the idea of that little descriptions right here. We're gonna go to mount And we already have a demo folder and just to give you an idea. I have an open terminal here This is some of the files we have a near to some random documents I dragged over something about backups and antivirus and pricing sheets You know data that looks like it might be kind of important and that I'd like to have backed up Controls do we want a daily backup? Hourly backup? Why not? Hourly would be great, right? So you're doing this every hour synchers any changes and sending them over there You can tie this with your snapshots and have it taking snapshots as well like the standard ZFS snapshots inside of shunas You can set prescript and postscript in case there's some type of scripts You want to run that does something in there, but definitely some options Upload size chunk 96 med use fast list. This is a use Fewer transactions in exchange for more RAM This is like a couple little tuning options you can put on there if you'd like Using the R clone, which is in the back end It's a way to speed the whole thing up in short But they do all documentation like I said I don't want to get too far off topic But they have the documentation on what that feature does linked right there We'll leave that off. We don't really need it and remote encryption for the initial one I'm not going to do it, but you do have this as an option We'll do a second one. We'll recreate this and set it up with the option to remotely encrypt folder There's no more. Oh, I choose the bucket the demo bucket here Loading there's nothing underneath it set up in there So we're just gonna let it go to the default folder like that Then we're gonna go ahead hit submit. You can also limit the very bottom right here transfers Speed limits if you need to submit Not run since last boot. So we're going ahead and run now Continue One quick thing I did miss the folder name up here YouTube demo has to match the name prefix I set down here of YouTube demo Don't forget that step or you'll sit there and scratch your head for a few minutes You notice there's a two minute jump in the video or a few minute jump in a video where Tom didn't notice that and it Was not backing up. It won't give an error. It just kind of spins for a little while Now that we have the proper prefix set to match the prefix we defined We're gonna go ahead and hit save and now Which we stopped the backup from running because I couldn't figure out why it wasn't working We say that from the video editing video editing magic is great now We can start the task watch it run and actually synchronize everything to the folder It was supposed to go in and it's doing so with much less time on the clock now All right now that we have successfully backed up all the files There's a look at the log and we go over to browse files inside this bucket Which is slash YouTube demo like we put on there and we can see them And what if we wanted to download one of them like Tom Lawrence's general bio? All right, that looks like a good file. I can download it out of here and probably open it. Yep. There we go and Here's a general bio of me There we go Old Bio thing that I had anyways I'm able to get those files out and this is what will obviously make some people nervous Are going well, I don't like or trust any of these cloud providers that they might not have an incident And the best way not to ever worry about that is encrypt everything before you send it So this is how it would work if it was unencrypted and of course Sometimes there's a reason to set it up like this You may want to push things into the bucket because you want to share a file with a lot of people Then you can make that bucket publicly accessible So other people can get files out of it or they have the option here to create the friendly links for these Particularly files so they're able to be downloaded out of here Those are cool features if you need to use them, but let's go ahead and purge everything in here We can see all the file names and everything, but let's go ahead and rmrf Everything we'll select all delete real quick I'm sure delete all those files. Absolutely. They're gone. Now. Let's talk about how to do this with encryption over here to edit Scroll down to the bottom Remote encryption We need to put a password password 1 2 3 is not a great idea But um easy enough for the demo here. We're doing then you have to add salt They do have a link here to dive into a little more details of how encryption salt workings I just want to get too off topic in there, but we're going to add our encryption salt put a little Dead Sea salt in there and Hit save it's as simple as that for encryption By the way, make sure you back up this password and salt if you lose either one of these And cannot remember them those files will be encrypted forever You'll never get them back when you do the system backup of true nas make sure you back that up properly somewhere Where this information and cloud credentials and api keys and extra configuration data is saved Maybe even keep a document alongside this where you know where all of these things are So we're going to hit save And we're just going to run this again cloud sync demo has started Wait till it completes and then we'll look at it with all the encryption. All right backup successful go over here Go ahead and refresh and outside of the Folder name that it's got to go into Everything else is completely encrypted. So even the folders the directory structure is now in a format that I Can't make heads or tails of which is exactly what you want You don't even want to let anyone infer metadata about what the value of those documents might be That's why it encrypts not only the contents of the files, but the names of the files as well So I can't recognize there are some structure here in terms of you know, some different folders But everything is encrypted. So wonderful Now you can still download and share these but they're not of much good if someone were to get a hold of them And like I said, this is what's really important Now any backup without a restore is just well wishful thinking you should test the restore process to make sure that it works There's a couple options we have for doing that. We can go and click restore now restore doesn't just grab and restore it Restore is going to do copy from source copy to destination of files and the same namespace are present They will be overwritten and this gives you the option to give this a Description and create a restore process that goes somewhere else because maybe you need something restored But you don't want to overwrite what's there sometimes this is one of the issues that occur Now this is not grinding there. I don't get to go through a list and select a single file to restore This is more of a disaster recovery situation You should be using something like snapshots in order to create more revisions to make that part easier This is for your offset backup So I'm going to cancel this though because all we're going to do is flip it the other way From push to pull This is all that task does is create that for you and have it be somewhere else. But let's go ahead and do this We're going to go ahead and delete all the files that are in here Yep Everything's gone. There are no files in this that means we can go here and pull And when you do a pull instead of sync because we're not synchronizing there's nothing here We're just going to switch it right to pull and copy give me everything that was over here and bring it back So let's go ahead and hit save And we're going to go ahead and run it real quick Run now continue And because it's the same password and salt combo This should take no time at all to grab the files download them and all the decryption now is occurring inside the trunas system With quite good quite a bit of speed here. We have a faster download than we had upload. There we go All the files are back now, let's go ahead and rm dash uh rf the lts logo files And talk about setting this up as a sync task. So now we've deleted that But I need to pull that back down. So we're going to edit and we could do a full one, but now we're going to do a sync So figure out what's different between what I have here. This is kind of granular, but in Not completely you kind of get the idea. It's going to synchronize whatever's missing But it may have some issues that there's some file conflicts and they may get overwritten for changes So be careful if you are doing this, but I know someone will want to know if you can do a sync that way. Yes And we'll go ahead and run that It's going to do a quick comparison and download what's missing And those are back So it will do granular restore but granular as in figure out what's missing and put it back That way if he just oops one folder and you reverse it and do a synchronization It can do that but it does have to build that index That's why when you first switch it it wants to do a full copy over everything on there So be careful when you're doing this that you don't break something screw it up This is any time you're doing restores do a mixture careful I usually do them to a different folder, but you can just restore a folder with it Now we've been using back lays like I said at the beginning for a number of years It's been a great service We've been using it for a while to back up even all the videos on this channel and many other things that we have The videos we don't encrypt everything else we do Because i'm not worried about the videos a matter of fact If I dump a bunch of video data in there being able to have a bucket where I can just download a video back out when i'm off site Or to send to someone if I need to Is a convenience is why I don't do those but everything else I do encrypt because why not that seems like a great idea And it's arbitrarily easy to do here in true nasts I think they do a nice job of putting that together But as I said always make sure you back it up and never back it up to the same server When we've dealt with that before where people thought they had a backup on the server and when the server was Lost in a disaster they're like, oh, I saved all the key files for the encryption keys on a text file on that server somewhere Make sure that's backed up to physically separate however you want to do it Um, that that's just something I try to remind people I never like getting a call and telling people I can't recover their data Even though they have their login and they have their api key over two back plays If you lost that encryption that you used to send it there, you're gonna have a problem All right, thanks, and I'll leave a link to all my other curated true nast videos I have a whole new series of them at lorenz dot technology. There's links in description for that as well Take care and thank you for making it to the end of this video If you enjoyed this content, please give it a thumbs up If you like to see more content from this channel, hit the subscribe button and the bell icon To hire a share project head over to lorenz systems.com and click on the hires button right at the top To help this channel out in other ways There's a join button here for youtube and a patreon page where your support is greatly appreciated For deals discounts and offers check out our affiliate links in the descriptions of all of our videos Including a link to our shirt store where we have a wide variety of shirts and new designs come out well randomly So check back frequently And finally our forums forums.lorenz systems.com is where you can have a more in-depth discussion about this video And other tech topics covered on this channel Thank you again, and we look forward to hearing from you. In the meantime, check out some of our other videos