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