/srv/irclogs.ubuntu.com/2016/03/13/#ubuntu-server.txt

LostSoul_Hello05:30
bray90820I have a small script here that looks for the oldest timestamp on a directory and removes it05:38
bray90820Is there a way i could have it exclude the folder CURRENT from the rm05:38
bray90820http://pastebin.com/raw/5daxVebB05:38
bray90820Maybe add [[ $f != CURRENT ]] somewhere05:42
RoyKyourscript /path/to/dirs/* # just remove the oldest - shouldn't be rocket science05:53
bray90820RoyK: : what do you mean?05:55
bray90820Do you mean do it manually?05:55
RoyKwhat sort of dirs are these? old logs or something?05:56
bray90820They are backups of my home server05:57
RoyKthere 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 hardlinks05:58
RoyKdirvish is old, but it still works very well05:58
RoyKperhaps try that instead05:59
bray90820RoyK: I am one step ahead of you I already have some stuff in my script to make hard links06:00
RoyKwhy not use dirvish?06:00
RoyKor fix whatever you find broken?06:00
RoyKit's been around for years and I've used it for 20+TB worth of fileservers06:00
bray90820Are you making system images?06:01
LostSoul_I've noticed recenty problem with network on my Ubuntu 14.0306:02
LostSoul_Thing is I reinstlalled system, used same config for interfaces as it had before and .. it not reachable from time to time06:02
LostSoul_Like I can be connected via ssh to machine and boom it hangs06:02
LostSoul_When I type ifdown + ifup console backs and machine is reachable again06:03
RoyKbray90820: no - it's file backup - best way to do it imho06:03
LostSoul_Most of the time (or at least when I noticed it) - machine is able to ping to outside world06:03
LostSoul_Any suggestion? As I'm rather weak if it comes to networks06:03
RoyKLostSoul_: I've never been comfortable with restarting ubuntu networking - I usually just reboot the PoS - that works06:04
bray90820RoyK: I like to have more control of my data so I think I'll stick to the script I am currently working on06:07
RoyKbray90820: well, dirvish is just perl - not too hard to read ;)06:08
bray90820It is when you have never worked with perl :P06:08
RoyKbut reinvent the wheel - go on - it'll probably be rounder :)06:08
bray90820What do you mean by rounder :P06:09
RoyKI mean it's no point of reinventing the wheel06:09
RoyKbetter take a too that works and fix whatever doesn't work for you06:10
RoyKI doubt dirvish and similar software won't work for you, really06:10
RoyKand perl isn't really that hard to read06:10
bray90820I have tried a few thing like grsync and dejadup that don'y work06:10
RoyKdirvish.pl is less than 1k lines06:12
bray90820Well my script is prob gonna be less then 100 lines06:13
RoyKand it works - beleive me06:13
RoyKwell, you're own your own06:13
LostSoul_RoyK: PoS?06:24
RoyKjust 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 in08:00
LostSoul_I've tried to reinstall grub, but I'm getting: grub-install error cannot find efi directory08:01
=== Deeps_ is now known as Deeps
=== EmilienM_ is now known as EmilienM
lordievaderGood morning.09:02
LostSoul_Hello09: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 working09: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
tiblockHi. 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
bekksThen use SSH keys for authentication, instead of passwords.20:27
bekksthats the most secure approach.20:28
tiblockbekks, but still, if somebody will get that key he can login into SSH and read/write sime files where chmod is 077720:29
tiblock*some files20:29
bekksThen 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!