<!-- Some styling for better description lists --><style type='text/css'>dt { font-weight: bold;float: left;display:inline;margin-right: 1em} dd { display:block; margin-left: 2em}</style>

   ***: mkb_ is now known as mkb
   <br> jlgaddis has quit IRC (Ping timeout: 244 seconds)
   <br> SpaceDum1 has quit IRC (Remote host closed the connection)
   mnathani_: awfully quiet in here
   brycec: Speaking of... Anybody heard from up_the_irons2 lately?
   <br> 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.
   <br> Thanks mercutio
   <br> (at least I think Ben = mercutio. I could be wrong)
   m0unds: yea, i think so
   brycec: Google says I'm right
   <br> (thanks to a TCL issue last year)
   mercutio: damnit, how am i meant to hide? :)
   <br> up the irons has been on holiday, but around reasonably often
   <br> just briefly
   brycec: <u>mercutio</u>: that slacker!
   <br> 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
   <br> And yeah, wasn't urgent
   <br> I'm thinking about upgrading zeit to Jessie...
   <br> Can't really think of a reason /not/ to
   mercutio: it's unlikely to break
   <br> a reason not to is that it's working fine atm
   brycec: heh
   <br> Yeah I've done a number of successful Jessie upgrades on headless systems, I'm pleased and impressed.
   <br> 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 &amp;&amp; ssh server script.sh
   kellytk: <u>brycec</u>: 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"
   <br> If you're not aware, ssh(1)'s basic syntax is ssh [options] &lt;host spec&gt; [command to run on remote host]
   kellytk: That's nice.  I had only been thinking of it as session-oriented
   <br> Thank you
   mnathani_: <u>brycec</u>: 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
   <br> but yeah remote :)
   mnathani_: <u>mercutio</u>: would that even work
   <br> wouldnt the contents of localscript be sent to ssh command rather than the sh
   <br> I should try it
   brycec: <u>mnathani_</u>: Yes it does work
   <br> It sends the contents of the file to stdin of sh running on the remote server
   <br> You can do the same thing with anything else... Like tar :D
   <br> tar -c some files etc | ssh server "tar -x -C /some/dir/"
   <br> Or your can dd
   <br> dd if=/dev/drive | ssh server "cat &gt; myfile.img"
   <br> no disk space required on the originating machine
   <br> Or better still, use compression of your choice! (and not just ssh's UseCompression option)
   <br> dd if=/dev/drive | gzip -9 | ssh server "cat &gt; myfile.img.gz"
   <br> (there are plenty more Stupid SSH Tricks, but these are the simpler/most obvious/most useful, I think)
   <br> The key here is that anything you can do with a pipe on the local machine "dd file | cat &gt; blah.img" you can do over ssh
   mercutio: what bryce said
   <br> except gzip -9 is pointless
   <br> if you want high compression use something better than gzip.
   <br> i've recently start using xz with -1 to -3
   brycec: <u>mercutio</u>: 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
   <br> it kind of came out of nowhere.  and blew everything else away for performance.
   <br> with acceptable compression ratios for a lot of use cases.
   <br> and now they're still making it fsater.  and the author is doing a higher compression slower one that's still faster than zlib
   <br> his blog is really good too
   <br> 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
   <br> s/versatily/versatile
   BryceBot: &lt;mnathani_&gt; 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?