- or download this
tar czf - SOURCE_DIR | ssh USER@REMOTE_HOST "cd REMOTE_DIR; tar xzf -"
...
tar czf - SOURCE_DIR | ssh USER@REMOTE_HOST "cat >REMOTE_DIR/backup.tg
+z"
- or download this
-j, --bzip2
filter the archive through bzip2
...
-z, --gzip, --gunzip --ungzip
filter the archive through gzip
- or download this
-T, --files-from FILE
get names to extract or create from FILE
- or download this
-X, --exclude-from FILE
exclude patterns listed in FILE
- or download this
tar czf - SOURCE_DIR | pv | ssh USER@REMOTE_HOST "cd REMOTE_DIR; tar x
+zf -"
...
tar czf - SOURCE_DIR | pv | ssh USER@REMOTE_HOST "cat >REMOTE_DIR/back
+up.tgz"