If you have shell access to your web site you might find this command useful. I use it to archive my web site. It comes handy especially if you have hundreds of files on the server, so downloading them via FTP would take very long.

You log in to your shell account with an SSH client (I use PuTTY). Then you navigate to the folder whose content you wish to archive. The following will create a Tar archive file of the entire folder including sub folders.
tar -czvf archive_name *

2 Responses to “How to create an archive file under Linux?”

  1. pop3 Says:

    tar -cf arch.tar arch
    bzip -c -9 arch.tar > arch.tar.bz2

    dd if=/dev/hda of=dev_hda bs=1024

  2. VoffJullyrorm Says:

    Qualitative resource

Leave a Reply