Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-23-2017, 05:10 PM
|
#1
|
Member
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508
Rep:
|
Server imaging software for Linux server
Hi guys what are you using to backup a server image to a USB HDD...I use macrium reflect for Windows...Haven't actually looked if macrium runs on centos 7... Thought I would see what you guys are using.... A free solution would be great I know you use tools like DD and rsync but I'm actually looking to image...thanks
|
|
|
01-23-2017, 10:14 PM
|
#2
|
Member
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893
Rep:
|
when i want to create a complete backup image, i just use dd, but the disk can't be mounted. of course on a server you really only backup configuration files and important data. then restoring a server is quick and easy. So on a running disk rsync and tar work great too.
|
|
|
01-24-2017, 05:16 AM
|
#3
|
Member
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508
Original Poster
Rep:
|
so you would just reinstall from scratch?
|
|
|
01-24-2017, 05:23 AM
|
#4
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,528
|
Quote:
Originally Posted by sigint-ninja
so you would just reinstall from scratch?
|
Not quite from scratch. You can highly automate the selection and installation of packages in several ways. Same for the configurations. Then pumping the data over is mostly a matter of rsync. This is for CentOS 7, right?
|
|
|
01-24-2017, 11:28 AM
|
#5
|
Member
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508
Original Poster
Rep:
|
yes indeed...so you would install a basic server config...maybe from a kickstart file
then automate the packages installation using dd
then throw over all your data etc using rsync
all scripted of course...?
|
|
|
01-24-2017, 12:42 PM
|
#6
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,528
|
All scripted of course, but no role for dd in the process. It's been a while since I've dealt with kickstart files specifically but if you go that route one tip is to fetch the file or the list of packages over HTTPS during your development phase. It takes time to build a disc image but editing a text file is as good as instantaneous. So you can build a disc image that points to a file or two on your local server and work quickly with the text file instead of spending time generating ISO-9660 images. From what I recall, I did a lot (on the RPM systems) with post-installation scripts and kept the actual kickstart to a minimum.
How many machines are you talking about? If it's a small number it may not be worth a kickstart and a post-installation script will do fine. If it's a large number then a bare bones kickstart followed by ansible or similar would work.
|
|
|
01-26-2017, 06:45 AM
|
#7
|
Member
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508
Original Poster
Rep:
|
no just my own private server...i sweated blood and tears to get wordpress going on it and i have everything setup the way i need...wouldnt want to lose everything to a hard drive crash etc...
|
|
|
01-26-2017, 07:15 AM
|
#8
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,528
|
Quote:
Originally Posted by sigint-ninja
no just my own private server...i sweated blood and tears to get wordpress going on it and i have everything setup the way i need...wouldnt want to lose everything to a hard drive crash etc...
|
Ok. Then just a regular backup would work and be less effort. There are a lot of tools for that but I prefer rsync for the data and tar for the configuration files, including the list of installed packages. rsync can even do incremental backup. Back up of the database(s) is a separate matter and requires an extra step before moving on to rsync and tar.
|
|
|
All times are GMT -5. The time now is 12:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|