***: mkb_ is now known as mkb
jlgaddis has quit IRC (Ping timeout: 244 seconds)
SpaceDum1 has quit IRC (Remote host closed the connection) mnathani_: awfully quiet in here brycec: Speaking of... Anybody heard from up_the_irons2 lately?
I realize he's probably busy, but I put in a ticket (non-urgent, granted) a few days ago without anything more than the autoresponse.
Thanks mercutio
(at least I think Ben = mercutio. I could be wrong) m0unds: yea, i think so brycec: Google says I'm right
(thanks to a TCL issue last year) mercutio: damnit, how am i meant to hide? :)
up the irons has been on holiday, but around reasonably often
just briefly brycec: mercutio: that slacker!
But again, thanks :D mercutio: yeh i saw it and it didn't look urgent brycec: I've seen Ben=mercutio somewhere else in the past... Twitter or similar probably
And yeah, wasn't urgent
I'm thinking about upgrading zeit to Jessie...
Can't really think of a reason /not/ to mercutio: it's unlikely to break
a reason not to is that it's working fine atm brycec: heh
Yeah I've done a number of successful Jessie upgrades on headless systems, I'm pleased and impressed.
And yeah it's working. and even receiving security updates. I just hate it falling "behind" -: brycec wonders when oldstable stops receiving updates mercutio: resources i suspect kellytk: Is anyone aware of a tool that would allow me to sync local files over SSH, and upon completion run a script on the server? brycec: rsync && ssh server script.sh kellytk: brycec: What do you mean by "ssh server script.sh"? brycec: I mean something like "ssh $MyServerThatIWantToRunAScriptUpon /path/to/some/script/i/want/to/run.sh"
If you're not aware, ssh(1)'s basic syntax is ssh [options] <host spec> [command to run on remote host] kellytk: That's nice. I had only been thinking of it as session-oriented
Thank you mnathani_: brycec: would /path/to/some/script/i/want/to/run.sh exist on the local machine or on the remote one we are logging into with ssh? mike-burns: Remote. mnathani_: thought so, but wasn't sure mercutio: you could do cat /usr/local/bin/localscript.sh | ssh server sh
but yeah remote :) mnathani_: mercutio: would that even work
wouldnt the contents of localscript be sent to ssh command rather than the sh
I should try it brycec: mnathani_: Yes it does work
It sends the contents of the file to stdin of sh running on the remote server
You can do the same thing with anything else... Like tar :D
tar -c some files etc | ssh server "tar -x -C /some/dir/"
Or your can dd
dd if=/dev/drive | ssh server "cat > myfile.img"
no disk space required on the originating machine
Or better still, use compression of your choice! (and not just ssh's UseCompression option)
dd if=/dev/drive | gzip -9 | ssh server "cat > myfile.img.gz"
(there are plenty more Stupid SSH Tricks, but these are the simpler/most obvious/most useful, I think)
The key here is that anything you can do with a pipe on the local machine "dd file | cat > blah.img" you can do over ssh mercutio: what bryce said
except gzip -9 is pointless
if you want high compression use something better than gzip.
i've recently start using xz with -1 to -3 brycec: mercutio: It was for illustrative purposes ;) gzip is well-known and recognized. mercutio: ahh brycec: (I figured if they didn't know about this use of ssh, they might not know bzip2, xz, etc) mercutio: i reckon it's so cool the way lz4 has been progressing
it kind of came out of nowhere. and blew everything else away for performance.
with acceptable compression ratios for a lot of use cases.
and now they're still making it fsater. and the author is doing a higher compression slower one that's still faster than zlib
his blog is really good too
http://fastcompression.blogspot.com/ ***: djkrikke-2 has quit IRC (Ping timeout: 264 seconds) mnathani_: thanks brycec, mercutio brycec: np mnathani_: I had no idea that ssh was so versatily
s/versatily/versatile BryceBot: <mnathani_> I had no idea that ssh was so versatile mnathani_: once again this channel never ceases to amaze me. (learned a lot idling in here) kellytk: Can someone think of a feature that makes sense for a VPS yet not for a dedicated server or vice versa?