Skip to main content
1 vote

How to make tar save the archive on a remote machine using sftp or ftp?

With curl: tar jcf - ~/importantfiles/* | curl -T- sftp://host/path/to/file.tar.xz Or with shells with support for Ksh-style process substitution, including ksh93, zsh, bash¹: tar jcf >(curl -T- ...
Stéphane Chazelas's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible