LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-07-2006, 01:13 AM   #1
derek_crowley
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
Backing up the changes


Hi, the problem i have is that i have been using two redhat boxes over the last couple of ages. it has some of the same data on both. i was wondering how i would compare the two. i didnt really want to be backing up the same file twice.
thanks
 
Old 12-07-2006, 03:39 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
There are probably many ways, one idea I just figured out (haven't tested -- no idea if it's good really) is that you could mount the first machine to some place and create a level 0 backup of it, then umount it and mount the other one to the same place and create a level 1 backup of it (this might work if the systems are mainly identical, with minor changes). But if the systems have only some common files and mainly do differ, it's probably not going to work.

Another way around would be to use find or similar tool to produce a complete file listing of the first machine, then do the same trick for the second machine and use some program (diff if you'd like to just see which files differ) to see the differencies. And if you like to go further, mount both machine's filesystems so they're accessible on one machine, create the file listings I mentioned earlier and use sed (or any other tool that suits) to take out duplicate lines, creating a third "unique" file out of this information -- then create a backup based on this list. The problem here is that the same files do get backed up if they sit in different directories, but either you do want to back them up too, or you can think of a way to filter out the lines from the list that describe the same file (remember to take into account dates, file sizes, last modification dates etc).

I'd probably mount the machines under /mnt/backupdata/ into separate directories, create lists of files under these two (2 machines) directories (filenames, sizes, last modification dates or whatever you think is important) and start merging these files, dropping duplicate files' lines out, and create a backup based on this list. Sounds a bit difficult and might have some drawbacks, but if you really think you can't take two identical files backed up, it's something like this you need to do.

I think any information that can't be installed straight out of a cd/other media, without any modifications, is important and should be backed up; if there happens to be some files backed up twice it's ok, since the point is that the information is there. If everything goes well till the end of the world, you never need the backups and it's all the same how many duplicate copies there are of some files, but if you do need the backups, it's just good if there is information (even if it's duplicated - or especially then).
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
backing up lsu420luv Fedora 1 02-28-2006 05:25 AM
Backing up ChristineCrawford Linux - Newbie 8 12-17-2005 07:21 AM
Backing Up RH 6.1 Lilbudha Red Hat 1 05-20-2005 06:12 AM
backing-up? jamaso Slackware 5 06-16-2004 08:03 AM
Backing up osx Linux - General 5 03-24-2003 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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