tar czf filename.tgz dir-or-files for gzip compression or
tar cjf filename.tar.bz dir-or-files for bzip2 compression
you can then move it over via whatever method you prefer (ftp, scp, sftp, nfs, ...)
another option may be rsync (over ssh).
or you can get "complex" by using tar and pushing to the server and extracting "on-the-fly".
example:
Code:
root@oldserver data]# tar czf - . | ssh newserver 'tar xzvf - -C /path/to/where/you/want/files/'
note that the use of '
.' is to get everything in the current directory 'data' which has all files on oldserver you want to duplicate to the newserver.
Hope this helps.