[Novalug] scp : skip xy.z??
Tux Subscriber Dave Aronson
tux2dave at davearonson.com
Sat May 30 11:32:15 EDT 2009
Beartooth <beartooth at beartooth.info> wrote:
> I don't see a skip command on man:scp
> Is there some slick trick?
You could create a tarball of the stuff you want to back up, using
either command line args or a file (so you don't have to remember them
all) to say what to skip. Something like:
tar zcvf /tmp/backup-2009-05-31.tgz ~ -X ~/.nobak
where ~/.nobak would list files you don't want to back up. Then just
scp the resulting tarball, which would be faster anyway (and take up
less space on the far end) due to the "z" meaning "gzip it" (and the
unification meaning no end-of-cluster waste). I've done this to back
up many projects at work, between CM checkins (or on projects too
stupidly managed to have CM).
Dave Aronson, software engineer soon to be for hire.
Looking for job (or contract) in Washington DC area.
See http://davearonson.com/ for resume & other info.
More information about the Novalug