thafreak | Gather around kids, I will regale you with the story of how thafreak recovered backups from a remote vps that had no internet access | 14:32 |
---|---|---|
* thafreak dusts off tree stump near campfire | 14:32 | |
thafreak | It all began when the server hosting my gogs git repo suddenly was no longer reachable | 14:33 |
thafreak | But I was able to log in to the serial console remotely still | 14:33 |
thafreak | When I realized it wasn't going to get fixed, and my last backup was 4am in the morning, I wanted some more recent backups | 14:34 |
thafreak | But how | 14:34 |
thafreak | Then I remembered back to my old BBS days and how we would transfer files with zmodem protocol, and how someone got zmodem to work over ssh | 14:34 |
thafreak | But the server had no zmodem stuff installd and with no internet access, no way to get new packages installed | 14:35 |
thafreak | Then it dawns on me, base64 encoding and copy/pasting is basically the same concept, and I had base64 | 14:36 |
thafreak | but with gigs of data, I needed a better way to capture the text output... | 14:36 |
* thafreak had a lightbulb moment | 14:36 | |
thafreak | the venerable script command! | 14:36 |
thafreak | So yes, I ran script on my laptop, logged into the serial console and base64'd to stdout my backups | 14:37 |
thafreak | I then had a giant text file locally, where I had to trim the top and bottom lines out (head and tail to the rescue) | 14:37 |
thafreak | and boom, I transfered a few gig of compressed backups to my laptop | 14:38 |
thafreak | And the most amazing part, the transfer speed was actually REALLY good | 14:38 |
thafreak | I was expecting it to take hours, but I was getting basically MB's/s of transfer...via ssh connected to a serial console | 14:39 |
dzho | wait, what | 22:52 |
dzho | traffic in ubuntu-us-oh? | 22:52 |
dzho | holy shit that's a big text file | 22:53 |
dzho | thafreak: you have earned your nick this day my friend | 22:53 |
dzho | that is totally a freak thing to do | 22:53 |
Unit193 | Impressive nevertheless. | 22:53 |
dzho | no dispute! | 22:54 |
dzho | thafreak: did you at least use the 'split' command to break it up? | 22:54 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!