[05:30] Hello [05:38] I have a small script here that looks for the oldest timestamp on a directory and removes it [05:38] Is there a way i could have it exclude the folder CURRENT from the rm [05:38] http://pastebin.com/raw/5daxVebB [05:42] Maybe add [[ $f != CURRENT ]] somewhere [05:53] yourscript /path/to/dirs/* # just remove the oldest - shouldn't be rocket science [05:55] RoyK: : what do you mean? [05:55] Do you mean do it manually? [05:56] what sort of dirs are these? old logs or something? [05:57] They are backups of my home server [05:58] there are things like dirvish (and possibly more updated software) that can keep a bunch of versions at the same time without much disk use, with the use of hardlinks [05:58] dirvish is old, but it still works very well [05:59] perhaps try that instead [06:00] RoyK: I am one step ahead of you I already have some stuff in my script to make hard links [06:00] why not use dirvish? [06:00] or fix whatever you find broken? [06:00] it's been around for years and I've used it for 20+TB worth of fileservers [06:01] Are you making system images? [06:02] I've noticed recenty problem with network on my Ubuntu 14.03 [06:02] Thing is I reinstlalled system, used same config for interfaces as it had before and .. it not reachable from time to time [06:02] Like I can be connected via ssh to machine and boom it hangs [06:03] When I type ifdown + ifup console backs and machine is reachable again [06:03] bray90820: no - it's file backup - best way to do it imho [06:03] Most of the time (or at least when I noticed it) - machine is able to ping to outside world [06:03] Any suggestion? As I'm rather weak if it comes to networks [06:04] LostSoul_: I've never been comfortable with restarting ubuntu networking - I usually just reboot the PoS - that works [06:07] RoyK: I like to have more control of my data so I think I'll stick to the script I am currently working on [06:08] bray90820: well, dirvish is just perl - not too hard to read ;) [06:08] It is when you have never worked with perl :P [06:08] but reinvent the wheel - go on - it'll probably be rounder :) [06:09] What do you mean by rounder :P [06:09] I mean it's no point of reinventing the wheel [06:10] better take a too that works and fix whatever doesn't work for you [06:10] I doubt dirvish and similar software won't work for you, really [06:10] and perl isn't really that hard to read [06:10] I have tried a few thing like grsync and dejadup that don'y work [06:12] dirvish.pl is less than 1k lines [06:13] Well my script is prob gonna be less then 100 lines [06:13] and it works - beleive me [06:13] well, you're own your own [06:24] RoyK: PoS? [06:26] just reboot the thing, ok? === ezri is now known as rw [07:18] RoyK: Ok :) [08:00] Damn, I've done upgrade as I've read about fixes and now I can't boot in [08:01] I've tried to reinstall grub, but I'm getting: grub-install error cannot find efi directory === Deeps_ is now known as Deeps === EmilienM_ is now known as EmilienM [09:02] Good morning. [09:15] Hello [09:15] Any idea how to fix it? [09:16] http://askubuntu.com/questions/53578/can-i-install-in-uefi-mode-with-the-alternate-installer/57380#57380 - this one is not working === JanC_ is now known as JanC === mfisch is now known as Guest12587 === King is now known as ` === ` is now known as Guest55329 === Guest55329 is now known as King === King is now known as `` === `` is now known as King [20:26] Hi. I have cluster of 10 servers and when i want update some file on all of them i need do it manually. Is there some software to synchronize files automaticaly? `rsync` is not good, he wants SSH password of master server and then if somebody get that password he can read our files or exploit system. [20:27] Then use SSH keys for authentication, instead of passwords. [20:28] thats the most secure approach. [20:29] bekks, but still, if somebody will get that key he can login into SSH and read/write sime files where chmod is 0777 [20:29] *some files [20:30] Then you have to take measures against that. You could even use password protected ssh keys. === _thumper_ is now known as thumper