LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-09-2017, 09:09 AM   #1
vjferreira
LQ Newbie
 
Registered: Feb 2017
Posts: 2

Rep: Reputation: Disabled
Clone a remote SERVER


HI,

I am a Linux administrator for a few months, where my network connects to another continent and I do not have any backup from the previous administration. Is it possible to make a server disk clone ??

Thanks in advance.
 
Old 02-09-2017, 09:12 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,309
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Welcome.

Some additional reading that may help:
Cloning may not be the best idea. There are other ways to make backups. What do you have in regards to distro, including version? Or is it a secret?
 
1 members found this post helpful.
Old 02-09-2017, 09:24 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by vjferreira View Post
HI,

I am a Linux administrator for a few months, where my network connects to another continent and I do not have any backup from the previous administration. Is it possible to make a server disk clone ??

Thanks in advance.
https://wiki.archlinux.org/index.php/disk_cloning may help.

Last edited by Habitual; 02-09-2017 at 09:25 AM. Reason: removed assumption
 
Old 02-09-2017, 09:25 AM   #4
vjferreira
LQ Newbie
 
Registered: Feb 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
Welcome.

Some additional reading that may help:
Cloning may not be the best idea. There are other ways to make backups. What do you have in regards to distro, including version? Or is it a secret?
Thanks Turbocapitalist

Distro: Fedora 20 x86

- Have a DNS and DHCP server
- The Firewall
- Two Virtual Machines

What you suggest?
 
Old 02-09-2017, 10:20 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by vjferreira View Post
Thanks Turbocapitalist

Distro: Fedora 20 x86

- Have a DNS and DHCP server
- The Firewall
- Two Virtual Machines

What you suggest?
Upgrading. Seriously, Fedora 20 is ancient at this point..went end of life in 2015. Since you're the administrator, you should be asking yourself what you can do to ensure the SERVICES, not the machines, are available. A server is a server...they're interchangeable. One DNS server configured the same way, will provide DNS in the same manner as another.

Back up your CONFIGS, and test bringing them up on the latest version of whatever OS you're going to use. F20 needs to be put away, and if this is a real SERVER, then it needs to be running a server-class OS, like CentOS or Red Hat (if you're going to PAY for RHEL). The time to test your migration/DR plan is while your original server is available, not after the fact.

Your virtual machine disk images are just files...copy them somewhere.
 
1 members found this post helpful.
Old 02-09-2017, 03:23 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Linux distro's like Fedora tend to have software packages to assist users. Various forms of backup/clone/copy and syncing are available directly. It is agreed that best practices require updates and backups.

I would be tempted to look at rsync myself. Not sure remote clone is a great idea. Problem here may be live state data issue. Only one company that I know of has live state backup but I think I heard about an open source if you can find it. Various programs running on a server may not copy over properly by the way when running. Databases are terrible at this.
 
Old 02-10-2017, 09:02 PM   #7
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by jefro View Post
I would be tempted to look at rsync myself. Not sure remote clone is a great idea. Problem here may be live state data issue. Only one company that I know of has live state backup but I think I heard about an open source if you can find it. Various programs running on a server may not copy over properly by the way when running. Databases are terrible at this.
This is what a maintenance window is for. Shut down the service, copy/clone, locally if you have to, then restart the service.
 
Old 02-11-2017, 02:34 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
You can't always use shutdown, nice but may not be handy.
Windows users enjoy live state backups so why doesn't linux?
 
Old 02-11-2017, 03:58 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by jefro View Post
You can't always use shutdown, nice but may not be handy. Windows users enjoy live state backups so why doesn't linux?
I've never had a problem resurrecting a server from a failure with *nix, and can't say the same for Windows.

The services on *nix typically employ a config file of some sort (smb.conf for Samba, etc.)...and I can copy those easily while the server is running. A DHCP leases file won't matter. DNS/Bind? Websites (PHP/HTML?)...all can be just copied. Databases? Snapshot via mysqldump, RMAN for Oracle, etc. Bring a new server up with those same configs, and things will 'just work'. Same for things like webmin file(s)/'databases' for users and whatnot.

Typically, when I'm building out new server(s), I'll put something into a text-file as I go. If I modify a config/whatever, I'll put a reference into that file. Then, I'll use rsync/whatever to copy those file(s) to another location/server/disk/tape. That sever goes casters-up? No worries...quick reload from original install media, copy those files back, restart services. Back to square one.

It's a pain to keep that file up-to-date, but well worth it. If I make symlinks or other such things, I note those in that file too. Recovery time is VASTLY shortened.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo connect to a remote server and execute scripts in remote server masubram Linux - Newbie 6 07-31-2016 09:35 AM
Git unable to clone from "remote" to working dir on that server? Jukas Linux - Software 3 08-10-2012 04:31 AM
I need to Clone a Red Hat drive and install clone in HP server drummer54 Linux - Newbie 14 03-07-2009 04:15 PM
Best Practices in Remote administration in Redhat 8, Terminal Server clone? sboscarine Linux - General 3 02-09-2003 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration