Template:egTarOverSsh
Syntax
{{egTarOverSsh}}
Usage
Code
{{egTarOverSsh}}
Result
tar --create --bzip2 --file=- "${HOME}/office" "${HOME}/private" \
| ssh 'melman@neon.raysoft.loc' "cat >${HOME}/backup/$(date +%F).tar.bz2"
ssh 'melman@neon.raysoft.loc' "tar --create --bzip2 --file=- \
${HOME}/office ${HOME}/private" >"${HOME}/backup/$(date +%F).tar.bz2"