LinuxQuestions.org
Review your favorite Linux distribution.
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 03-09-2010, 07:51 AM   #1
m3phisto
Member
 
Registered: Mar 2010
Posts: 47

Rep: Reputation: 15
Sync 2 Systems


hi there

i have a virtual Test server with Fedora on it at work.
the server is not in a seperated private network.

i want to sync all settings from the server to my laptop so i can work at home too.


i plan to install multiple services on the VM like apache, SQL-Server, bind, ...


anyone got an idea how to do this?
 
Old 03-09-2010, 01:15 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Do you want the virtual machine copied to your laptop or do you want the contents of the virtual machine copied to your laptop?

If you're talking the later then it's fairly easy to setup with an application like rsync. If you're talking the former you would just setup rsync to sync only that specific directory.
 
Old 03-10-2010, 01:36 AM   #3
m3phisto
Member
 
Registered: Mar 2010
Posts: 47

Original Poster
Rep: Reputation: 15
i was thinking about both directions...

is it possible?
 
Old 03-10-2010, 09:23 AM   #4
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Either way is easily doable.

Code:
/usr/bin/rsync -W --delete-during --stats -avrpPe ssh /* root@computer-to-be-overwritten:/ --exclude=/etc/hostname --exclude=/var/lib/mysql --exclude=/etc/network/interfaces --exclude=/etc/lilo.conf --exclude=/etc/grub.conf --exclude=/etc/raidtab --exclude=/etc/modules.conf --exclude=/etc/fstab --exclude=/etc/modules --exclude=/etc/lvm* --exclude=/etc/udev/rules.d/z25_persistent-net.rules --exclude=/proc --exclude=/sys --exclude=/dev --exclude=/boot --exclude=/etc/sysconfig/network-scripts
I may be forgetting a couple excludes there, but that is the gist of copying a system to a system over an encrypted ssh link. You basically want to exclude anything that would be more accurate on the new host, modules, fstab, and directories that don't make any sense to include-- proc, sys, dev, etc.

If you wanted to say just sync the vmfiles themselves you could do that by just specifying the source and destination as the correct locations.
 
  


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
Read only file systems, custom live CDs, and embedded systems coffeecoffee Linux - Newbie 2 02-24-2009 11:09 PM
setting the systems hosts ip address for the DTE systems in neural network samalaraj Linux - Newbie 1 09-24-2008 12:40 PM
Need some detail information on Hard Real-Time Systems and Soft real-Time Systems. LinuxInfo General 3 09-22-2008 03:25 AM
LXer: Metasploit 3.0 doesn't pwn systems, black hats pwn systems LXer Syndicated Linux News 0 05-04-2007 09:01 PM
Sync for Samsung Sync master Naphoon Linux - Hardware 1 10-16-2004 06:20 PM

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

All times are GMT -5. The time now is 01:03 PM.

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