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- ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
tar × 1291linux × 190
gzip × 120
backup × 110
compression × 100
archive × 92
bash × 91
shell-script × 80
shell × 63
files × 59
find × 54
directory × 47
zip × 47
command-line × 46
pipe × 46
ubuntu × 33
permissions × 30
ssh × 29
tape × 29
software-installation × 28
rsync × 24
debian × 23
wildcards × 23
data-recovery × 23
split × 22