Solved

Re-Image Server, Backups, etc at host like 1&1

Posted on 2014-01-26
9
924 Views
Last Modified: 2014-02-26
I've a Ubuntu dedicated server at 1&1.   I'm new to Linux.  I do read a lot of HowTo, and sometime when something is not going properly, i read forums and people get these kind of answers: "Did you backuped your data?   There's no uninstall procedure for this software.  You will have to Re-Image and start from scratch"...

I would like to know if it's possible to do an image of the server while it's running, on a 2nd partition, so if anything goes seriously bad, i can reload that image and be up & running in a couple of minutes?  (Keep in mind that i also don't have any access localy to 1&1 datacenter)

One thing i don't understand also about "Re-Image" is, what do they actually re-image?  The whole disk?  Or just the OS partition?

thanks for your help
0
Comment
Question by:cdebel
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 6

Assisted Solution

by:xeroxzerox
xeroxzerox earned 50 total points
Comment Utility
Hi cdebel,

Best option 1:

you can use clonezilla to backup system.
Lots of options available in it.like,full hdd image,single partition image,restore option,etc...

For more details visit
http://clonezilla.org/

http://clonezilla.org/screenshots/?in_path=/00_Clonezilla

2nd option:
Lots of tool available in site
http://www.thefreecountry.com/utilities/backupandimage.shtml
0
 
LVL 13

Expert Comment

by:Sandy
Comment Utility
try FOG also... free.. small and good one.

TY/SA
0
 
LVL 18

Accepted Solution

by:
TobiasHolm earned 350 total points
Comment Utility
Since the backup should be made while the servers running, I'd recommend using rsync. Create a script to copy your servers system disk and all required data you want in the backup. Then run this script as often as you'd like backup (like once every hour).

Practise to restore the server from this backup so you now how to get the server up'n running in case you need to later.

Ref: http://www.thegeekstuff.com/2010/09/rsync-command-examples/

/Tobias
0
 
LVL 87

Assisted Solution

by:rindi
rindi earned 100 total points
Comment Utility
Imaging is a backup of the complete partition. So everything is there. This should be done with the partitions unmounted, that means you should be onsite or have someone onsite provided you don't have a way remote access the systems.

The best thing when your servers are hosted without your direct access to them is to use virtualization, like VMWare's vSphere or KVM that comes with most Linux Distro's. In such a scenario you can shut the OS you have several options for backup. Since you can access the Host remotely, you can just copy the VM's when they are off to some other location, and you have a backup, or you can also start the VM's using a LiveCD iso like CloneZilla mentioned earlier and run the backup from there via your console to the host.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 10

Author Comment

by:cdebel
Comment Utility
@rindi: the usage of a VM is probably easier.  But it require more ressources, and i've also no clue how to setup the server so it forward every request made to the host to the guest OS.

@Tobias: rsync is probably the easiest way.  I'm going to give it a try in a virtual machine on Ubuntu localy.  It seems to keep permissions, ownership, etc, so it should be ok.

@xerox: CloneZilla doesn't work if i don't have a physical access to the server

@sandeep: well, Fog seems to use PEX, and that's not something i'm used too at all.   I would be tempted to say that it require a 2nd server on the same LAN or something like that...  which is not actually possible for the moment.  Plus i'm 100% command line at the moment, and Fog seems to be a GUI based app.
0
 
LVL 87

Expert Comment

by:rindi
Comment Utility
A VM does use more resources, but I think today's hardware can normally easily cope with most needs, and the type 1 hypervisors I mentioned are really good.

Although rSync is good for backing up, it isn't an image backup that it does. It's more a file based backup that only backs up the delta's of files after the first backup.
0
 
LVL 10

Author Comment

by:cdebel
Comment Utility
@rindi:  Do you think that it would work if i do this?

Backup /etc, /home, /var, /root, /srv with rsync
Keep a list of packages i've installed

If something goes wrong, i re-image from 1&1 control panel, then install packages i've installed, then bring back the backup made with rsync, then reboot.  Would it be enough?  

Probably not as efficient as your method with VM's, but since i've no clue how i need to setup the server to make my VM become visible from outside, it would be easier for me.

Does KVM require the GUI?

Do i have to order a 2nd Fixed IP from 1and1 and assign it to the Guest OS to make it visible from outside?
0
 
LVL 18

Assisted Solution

by:TobiasHolm
TobiasHolm earned 350 total points
Comment Utility
Linux works with just the files and a boot manager, you don't need to image the whole partition. Plus you can copy the files without stopping the server (may not be true if you have open files that are written to during long periods, then you might have to stop those services/functions before the backup/rsync. And SQL DB's needs to be dumped to files or backuped with special commands).

/Tobias
0
 
LVL 10

Author Closing Comment

by:cdebel
Comment Utility
I need to be carefull, and see what every apps is doing, where it's store it's config, it's data, etc...  so thanks for your help
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 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

7 Experts available now in Live!

Get 1:1 Help Now