Let's say you get a new account on computer bar.example.com and your Web site's files will go in directory /aa/bb there. Both computers use GNU Linux, of course.
You only have a 1200 bps modem so you don't want to upload all your files again.
Log into a shell on the old account and do this:
tgz
and the final dot.
This creates a file called tarball.tgz in your
personal space, containing your Web site,
preserving the directory structure and time stamps.
Then it tells you the file size in kilobytes.
Your text and HTML will compress about 2.5 to 1.
Your images will hardly compress at all.
The file appears at
http://foo.example.com/~you/tarball.tgz
Now get a shell on the new account and do this:
This copies the ``tarball'' to the new account and unpacks it.Get a friend with a faster modem to download tarball.tgz for posterity. Inspect the new Web site and make sure it's working. You'll probably have to adjust CGI scripts and counters. Finally, remove both copies of the tarball.tgz. On the old system:
And on the new one, just