Copy files over SSH

From Jwiki
Revision as of 08:20, 28 July 2025 by Gyurci08 (talk | contribs)


Efficient File Transfer with Tar and SSH

Efficiently transfer files using tar over SSH for migrations.

Optimized Command

<code class="bash">
tar cjf - /path/to/local/dir | ssh user@remote-host 'tar xjf - -C /path/to/remote/destination'
</code>

Tips

- Use --exclude to skip files. - Swap j for z (gzip) for faster compression.