Linux - NewbieThis 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.
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.
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
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.
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?
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...?
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.
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.