linxu drive copying problem.. is it possible without cd or tape?

Posted on 2005-04-26
Last Modified: 2010-04-20
Hi there.

I want to copy one linux partition's contents to a file, ftp it to another server running linux and unzip it to form another operating system. is this possible?

it's a server in a hosting centre without a tape drive or recordable cd/dvd etc.

Tried a
tar -cvf blah.tar *  
gzip blah.tar

but when I came to unzip the file on the second server, the file had problems unzipping, incremental problems or something. the zip file was corrupted somehow
(yes, ftp was bin format).

Thanks for any help possible.

Question by:daryn
    LVL 3

    Accepted Solution



    "tar jcvpf blah.tar.bz2 *"

    and extract by

    "tar jxvpf blah.tar.bz2"

    LVL 9

    Assisted Solution

    You could use the following:

    tar zcvf blah.tar *
    tar zxvf blah.tar.gz

    You could also transfer using scp which will allow you to move entire directories.
    LVL 38

    Expert Comment

    > on the second server, the file had problems unzipping, incremental problems or something
    1. What's kind of tool you use to unzip the tar.gz file? WinZip (version 8.1 or above)?

    2. How big is the tar file (not compressed)?

      Some uncompress softwares have 2 GB file size limitation. So you need to get later version or
    do it on Linux.

    If your second server is Windows, then you can download/insall cygwin
    And uncompress in cygwin shell.
    LVL 3

    Assisted Solution


    Note: if you used gzip to compress the tar file, then you need to use gunzip (not unzip) to uncompress it.

    Another solution:

    If you can access the target machine via ssh, then another solution (which doesn't involve creating a tar file) is:

    tar zvcpf - . | ssh user@host 'cd /target/dir; tar zxpBf -'

    This is especially useful across a local network, but also works over the Internet.
    LVL 38

    Expert Comment

    > then you need to use gunzip (not unzip) to uncompress it.
    Winzip can unzip the *.gz and *.tar.gz without problem.
    Gnu zip is open source, so winzip support gzip/gunzip.
    LVL 4

    Expert Comment

    Even you can use zip command for your need....
    you can easilty unzip using winzip on windows....
    (also you can unzip the tar.gz. file in winzip)

    Gopu N


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now