Skip to main content

Resuming scp

I was transferring a file from one system to another at work with scp when the connection dropped. It was a substantially sized file and I didn't want to start the transfer over again, but unfortunately scp doesn't support resume. That's when I remembered rsync. With rsync I was able to continue the transfer where it left off, and afterward I had the idea to set the following alias in my .bashrc file.
alias scp='rsync -vPe ssh'
Now when I transfer files with scp, I'm really using rsync and I don't have to worry about flaky network drops.

Comments

  1. Very cool! I have been frustrated by this before. I don't think I'll go so far as aliasing scp, but will give rsync a go next time I'm movin' weight!

    ReplyDelete

Post a Comment

Popular posts from this blog

Composing Music with PHP

I’m not an expert on probability theory, artificial intelligence, and machine learning. And even my Music 201 class from years ago has been long forgotten. But if you’ll indulge me for the next 10 minutes, I think you’ll find that even just a little knowledge can yield impressive results if creatively woven together. I’d like to share with you how to teach PHP to compose music. Here’s an example: You’re looking at a melody generated by PHP. It’s not the most memorable, but it’s not unpleasant either. And surprisingly, the code to generate such sequences is rather brief. So what’s going on? The script calculates a probability map of melodic intervals and applies a Markov process to generate a new sequence. In friendlier terms, musical data is analyzed by a script to learn which intervals make up pleasing melodies. It then creates a new composition by selecting pitches based on the possibilities it’s observed. . Standing on Shoulders Composition doesn’t happen in a vacuum. Bach wa...

Learning Prolog

I'm not quite sure exactly I was searching for, but somehow I serendipitously stumbled upon the site learnprolognow.org a few months ago. It's the home for an introductory Prolog programming course. Logic programming offers an interesting way to think about your problems; I've been doing so much procedural and object-oriented programming in the past decade that it really took effort to think at a higher level! I found the most interesting features to be definite clause grammars (DCG), and unification. Difference lists are very powerful and Prolog's DCG syntax makes it easy to work with them. Specifying a grammar such as: s(s(NP,VP)) --> np(NP,X,Y,subject), vp(VP,X,Y). np(np(DET,NBAR,PP),X,Y,_) --> det(DET,X), nbar(NBAR,X,Y), pp(PP). np(np(DET,NBAR),X,Y,_) --> det(DET,X), nbar(NBAR,X,Y). np(np(PRO),X,Y,Z) --> pro(PRO,X,Y,Z). vp(vp(V),X,Y) --> v(V,X,Y). vp(vp(V,NP),X,Y) --> v(V,X,Y), np(NP,_,_,object). nbar(nbar(JP),X,3) --> jp(JP,X). pp(pp(PREP,N...

Does Esperanto-USA have a Transparency Problem?

I’ve been an active member of Esperanto-USA for many years, even serving on its board of directors. I wanted to help build a strong, healthy national organization that effectively promotes Esperanto in the United States. But when I stepped down from the board, that desire didn’t end. I continued to bring problems to the attention of the organization, ranging from member rights to strategy to proper governance. I’ve decided to be public about this latest issue because of its seriousness and because of how the board has been secretive about it. The membership deserves to know what is done in their name. What Happened In November 2025, the board of Esperanto-USA sent a formal letter to Esperanto-Ligo en Israelo (ELI) with a copy to UEA, concerning an article published in ELI’s bulletin. The article, written by Eduardo Topol, contained inflammatory political content. And although I agree that the article was extremely offensive, the board’s decision to inj...