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