Use tar -caf <file> <dir> to create an archive, tar -xf <file> to| A Scripter's Notes
Save on your connections when preloading lots of files with tar.js ..| Enki’s blog