Sometimes you need to tar a folder and put its contents in another folder or server. These commands can be used.
Same Server:
tar -cf - source_directory | tar -C /destination/directory/ -xvf -
Different Server:
tar -czf - source_directory | ssh user@host 'cat > /path/to/source_directory.tgz'
Auto Amazon Links: No products found.