Copying files

From DISI
Revision as of 20:51, 6 June 2014 by Frodo (talk | contribs) (Created page with "To copy from the machine you are on tar czf - dir1 dir2 dir3 | ssh tbalius@sgehead.bkslab.org "tar xzf - -C path/for/new/files " To copy from a remote machine to the machi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To copy from the machine you are on

tar czf - dir1 dir2 dir3 | ssh tbalius@sgehead.bkslab.org "tar xzf - -C path/for/new/files "


To copy from a remote machine to the machine you are on


ssh tbalius@sgehead.uoft.bkslab.org "cd path/to/dir/you/want ; tar czf - diryouwant1 diryouwant2 " | tar xzf - -C where/it/goes/locally


Clear?