Backup and Restore CentOS machine to a Flash Drive

Posted on 2009-02-09
Last Modified: 2013-12-16
I have a small CentOS  (2GB) installation that I need to replecate onto several other servers.

Can someone supply me with the proper commands to back the drive up to a USB stick that I can put into a new server and restore the configuration to?  (The hardware will be very simular between the servers)

I am kinda new to Linux and will be doing everything from the command line.

Question by:Bob
    LVL 4

    Expert Comment

    Use portable DriveImage XML

    Author Comment

    ended up using

    dd /if=/dev/sda  of=/dev/sdb

    worked great so far
    LVL 4

    Accepted Solution

    That will only work for backing up. You will be unable to restore the image without additional software. That's why I suggested that you use a portable software such as driveimage-xml. Your own answer doesn't meet your original specifications.

    Author Closing Comment

    Thanks for the help.  You are correct that I strayed from my origional question.  All I really wanted to do is clone the drives for multiple installations.  Your answer was correct if I wanted to back up to a USB so I will award the points.  I will look into the software also.

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    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…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    734 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

    21 Experts available now in Live!

    Get 1:1 Help Now