JOGUE AGORA

GNU Stow - Backup your Dots in a GNU way... lol


� � 
LIVE � �  � � 


04.05.2024

Hey guys how you doing i'm xDSL and i'm. gonna talk to you about the new stove. today your new stove is an application. I've ignored since at least 2015 when. the last update was I remember the. update thinking what's that you know I. remember someone talking miles long sir. gusto is it's hard to I mean the way. they expect themselves might be the. reason why no one uses it or at least no. one knows who to use it apart from one. person who put me on it anyway we'll get. to that in a bit so what could be what. what you can do with this is you give it. a folder right and then inside that. folder you just like map your own fall. structure and then it makes symlinks. based on that right sounds confusing. it's really not and I'm gonna show you. with this GUI file browser does everyone. understand that these work so we use NPV.

Is our example if I'm looking at for my. NPV duck confit right I'll find it. inside inside the home folder inside. config let me start to fold an NPV. inside the NPV folder will fill all. these files so I've turned on hidden. files let me show you this is my dot. files folder I've just made a folder on. my hard drive called dot files has to be. home but other than that there's no. stipulations there they go and inside. there I've been a folder called NPV okay. means there is a folder called dot. config because I want to put this foil. inside config and then there's a fault. with NPV and then we go into NPV look. and there's all the faults we expect to. find inside there it's pretty cool right. um now we can do the same again with. links like links is different than links. has just got two files inside home right.

There just to hidden ones on home to. configure links um and there's loads of. others I think you I thought my bin. folder my bin folder he's just a folder. called dot bin inside my home directory. so inside there I've literally got a. folder called dot bin so the top layer. each folder represents the whole. structure so that's the home directory. and then in there represents where we. want to put the foil I know right it. sounds mad so what does that look like. but let me let's have a look at range. because range is pretty good at showing. us this stuff so you can see here if you. look at the top here they're inside doc. inside home yeah inside.com fig we've. got a folder called NPV and inside NPV. is all those Falls we talked about but. you can see the light blue here which. mean. it's a symlink it's been sim linked now.

It's been simmering because that's what. that this is what um this is what's toad. does so how do I set this up. imple make a folder called dot files I. mean one folder for every application I. would like to backup I mean I. technically don't have to but this makes. sense you say you met one folder for. every application doing the application. the names don't have to be anything I. mean I couldn't literally cause what. everyone spellings don't matter nouns. that matter like I've got a folder. called pass and they go which is which. is actually contains my pastor my. password store file so I've got I've. got these folders right um and then. inside I just put I just moved the file. from the home directory into here. mirroring it's these folder structure so. if it's inside.com fingers we talked. about I just make a folder called config.

So inside home it's in doc config this. represents home and then I want to. follicle con think I'm feeling like I'm. hammering this home too much I know. someone's not going to get it I'm gonna. make a vault in it and then I put the. follicle MPV in there right so I'm just. mirroring the folder structure that. happens that sort where what ants on. home directory then I have this file. called stow restore I'm gonna open this. with notepad not window. no pad with nice pad just because it's a. bit bigger because my summary of harsh. it will head for some reason right I. hope it's of the kidney of him right. like directly it's just so small. it's so small anyway all you do. is in here I'll put a space up for an. enterprise just cuz of bored to be. honest let's put an enterprise in there. let's be cheeky with it I did that.

Anyway. anyway all you do is you write the word. Stowe and then the name of the folder so. like a book is literally like there's a. books like there's our three. there's near VM you just put the name. the folders and what Stowe does is where. you run this this little script I've got. here or you can just type the word Stowe. and then the application then manually. if you wanted to all this does is it. runs through this all these arist in. there he just runs through it and it. just makes siblings writes all it does. you just make symlinks um and the reason. this is smart is because first off it. won't duplicate a symlink so if it's in. the core any existing you run that. screen unlock the scripts using a script. method if you've run it again if you. just try and stow the same thing again. it will just ignore you it just won't do.

Anything he'll just belong so what you. doing what you did what you talking. about. if the fall already exists it'll throw. you up an error it'll tell you the fall. you'll be like wow oh dude there's. already a fourth I'm not touching that. and then that means you haven't moved. the foil over you you haven't physically. moved it to where it needs to be inside. your dot files folder so that's good. because when I write anything which. means that you Falls are actually pretty. safe and then it'll make a Simran. correctly because guys there's a lot of. people out there that like talk about. similar the devil because they're just. making them wrong you know all sorts of. weird back and forward Blair with inlay. a weird symlinks you know it's and they. don't like it because of that I. understand that but this gets round that.

This is a clean way of managing it so. yeah all I've done is again really. quickly installed stove. I made a folder called doc files I made. one folder for every application I want. to back up there doc falls for and then. inside there I mirrored the home. structure right at the home folder. structure so the doc config would put. config if it's dot MPV we put a dot MPV. in there whatever right exactly the same. structure you would have the exact the. same path of you would have from home um. you could make one folder and put. everything in there but I think it's. more elegant to be able to doing this. module away because you can simply just. delete one of these folders you don't. just delete that you've done or you can. have a folder that has some some. conflicts involved all right let's try. this one all right now let's try this.

One you can do things with it by keeping. it modular which seems smart to me and. the idea and the fact you can just run a. script just oh this no this doesn't just. go down this list is great because if I. a new application I want to back up. these dot files and make a fuss they say. install application called Bob I make a. folder called Bob here I go inside there. I go okay where's Bob's configuration. files it's inside config and it's in. sort of folder called Bob ok so and then. I just go to the Bob folder and make a. folder called config and I just pick up. the Bob folder I drop it there and then. I just add it to my script I just add it. to my script I just owed Bob I just run. my script I'm done backed up never have. to worry about ever again and when I get. to a new machine and when I get to a. nice new machine and it's a I know I.

Really blowed my machine whatever I just. I just bring this down from github I. just run my restore script and. everything's back in place. I've even lighting stuff like written. application install scripts as well just. install some applications I think you. know I'm the necessaries my workflow. something just install that. Asians do they do this to the stove. store do the snow restore thing and I'm. done it's it's really good it's I've. been managing my thought Falls up until. now Byam by by just manually doing it. and then have it and then manually. making a simile every time but that's. kind of been a bit of a bore like and. this is just so much more elegant it's. just so much tidier to do and I really. really like it I think it's it doesn't. save loads of time from what I was doing. before but it just automates a step and.

It's a lot more elegant have this folder. structure out or this folder structure. all saved you know all of that mirror in. it and it means it's not gonna variety. any think I'm accidental similarly. something to oblivion or since at the. wrong place it's nice and. straightforward and also if somebody. wants to somebody else wants one you're. like I want your in PDF kit I'm using. them I don't wanna keep peeking in PB. it's good sort of in the middle. this one goes okay I want your NPV. config right they can just do that. there's a car going past you poke on. here I don't know they can just. literally just copy that NPV folder into. their snow folder and just add just run. stow NPV and it will just magically do. it now the few questions people have is. can you stole ink stuff to things. outside of the home folder yes you can.

You can give it a get flag I think it's. minus t minus d it's in the man for now. you can view a target location so you. look Tom I've got a folder here called. them not Stowe which is just like some. if they've stuff and some stuff that. goes net see I'm thinking about adding. that to my stole list here from I keep. it nice and simple or not especially if. the other people have run my script off. other thing we're gonna run this script. I know they are they always do people. get run those blind I'll try this it's. like I've just need everything because. my configures not it's not sensible to. be honest um oh yeah. it's it's good it's simple and it makes. everything nice and portable so I wrote. it down long enough but Stowe is gray. and really it's it's it's a good new. project right I mean canoe they. typically make good like they.

Typically met like there's not a lot of. stuff they make that that's not very. good part from you know nano it's not a. szeliga new project today today did they. open the door like get out nano. okay there you know other than that. anyway I think that most of the stuff we. most the stuff that comes from can do is. you can trust and all I did anyway with. my. there is I just literally once I've done. that I just made a new where I just get. synced it and that's it made a new get. repository throw it up there I'm done. and they synced and then all ass do just. really get pushed occasionally may even. put down a cron job or something just. keep noticing because it's got history. so doesn't really matter but oh yeah. it's been fun and if you if you don't. see the point backup config files. remember this video because at some.

point in the future you will trust me at. some point you gonna go I really should. have backed up those scripts me it's. obviously you should have done so thanks. for watching guys I mean xDSL this. channel is kept ad free thanks to guys. over on patreon if you'd like to support. me on patreon please do that'd be. wonderful if not just just watch videos. and just leave a nice comment below. thanks Hanks it's great it'd be nice to. me feel good about myself anyway. you

All Devices iOS Android Chromecast