LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-06-2009, 02:07 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
How to Take Snapshot of the Complete Linux Server?


I have SVN Running with various Projects on Fedora 9 and I need to take snapshot of the entire OS. Anyone who can suggest?
 
Old 07-06-2009, 03:59 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
is your SVN directories running in a partition which is running
1. LVM ?
you can use lvcreate -s (see man) which creates a snapshot of the volume
2. xfs
you can use xfs_dumpfs which takes a dump of the complete FS
3. ext2/ext3
you can use dump DUMP(8) to backup (incrementally even) the complete FS
3. others
you can just do a tar backup of the whole FS and restore it when needed !
 
Old 07-06-2009, 04:00 AM   #3
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
sorry ... xfs_dumpfs is to be read as xfsdump
 
Old 07-06-2009, 04:08 AM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
Thanks for the advise.
I have the following LVM Filesystem Created on mY fedora machine:
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       30G  9.5G   19G  34% /
/dev/mapper/VolGroup00-LogVol07
                      6.8G  144M  6.4G   3% /opt
/dev/mapper/VolGroup00-LogVol04
                      9.6G  8.3G  895M  91% /usr
/dev/mapper/VolGroup00-LogVol06
                      3.0G  830M  2.0G  29% /usr/local
/dev/mapper/VolGroup00-LogVol03
                      2.0G  105M  1.8G   6% /tmp
/dev/mapper/VolGroup00-LogVol05
                      5.9G  3.9G  1.8G  69% /var
/dev/mapper/VolGroup00-LogVol02
                       15G  7.7G  6.0G  57% /home
/dev/cciss/c0d0p1     190M   13M  169M   7% /boot
tmpfs                1014M   96K 1014M   1% /dev/shm
I have SVN server running on /svn/repos/sandbox.What commands I need to run for the Backup.
 
Old 07-06-2009, 04:10 AM   #5
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
Also,If lvcreate -s backup the LVM How to restore it in another Machine.
 
Old 07-06-2009, 05:38 AM   #6
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
ok
backup-restore is different and snapshot is different.
The best way to backup and restore the system is to tar it up fully and expand it
i will do it this way

create the directory in which your SVN sources needs to be present
mount it in the source machine and then just copy off the whole dir.
or tar the SVN root fully and transfer it by network and expand it in the 2nd system...

or you can use rsync to sync the complete tree to the other machine over ssh.
 
Old 07-06-2009, 05:50 AM   #7
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
The SVN Directory /svn/repos/sandbox is a simply a directory which doesnt have the project as its encrypted and binary format. How Can it be possible to create entire tar of the directory?
 
Old 07-06-2009, 02:16 PM   #8
luisduenas
LQ Newbie
 
Registered: Dec 2008
Distribution: Debian - pero ya no.
Posts: 22

Rep: Reputation: 0
Use the "dd" command, you can even take snapshot the mbr.
 
Old 07-06-2009, 02:27 PM   #9
cyclegar
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Rep: Reputation: 1
I have used ghost for linux (g4l) and its wonderful and easy to use and its uses dd.

http://sourceforge.net/projects/g4l/

Thanks
M Cycegar
 
  


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
Moving a complete folder to another linux server zardari7 Linux - Newbie 8 07-06-2009 02:24 AM
i want complete confiruration and installation procedure for ris server in linux nghadge1801 Linux - Newbie 1 05-22-2009 04:39 AM
Ghost linux machine - snapshot of complete linux box samengr Linux - General 1 02-20-2009 08:13 PM
LXer: How To Install A Complete LEMP (Linux - EngineX (Nginx HTTP SERVER) - Mysql - P LXer Syndicated Linux News 0 10-19-2007 08:00 PM
snapshot for web server MSafty Linux - Networking 2 01-03-2006 04:04 PM

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

All times are GMT -5. The time now is 03:34 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