LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-14-2002, 08:52 PM   #1
Electrode
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Debian
Posts: 158

Rep: Reputation: 16
Question Best way to compare 2 directory heirarchies?


Hello all. I'm about 2 weeks overdue for a backup of my FTP server, so I figured I should do it now, lest my RAID-0 array fail and take a large ammount of data with it.

Due to some recent instability caused by the CPU overheating, I don't completely trust the integrity of the data currently on the server, so instead of taking the risk of overwriting good data with bad data, I want to make an incremental backup, just copying the new files and directory structure changes (files moved, directories renamed, etc) made since the last backup.

The problem lies in getting a list of differences between the server copy (/pub) and backup copy (/mnt/hd/pub). I tried dumping ls -lR to files and running diff against them, but it produces a useless dump of EVERY difference, even just entries that get shifted down a line or so due to new entries.

Is there any good way to do this? Thanks for any advice!
 
Old 11-14-2002, 10:36 PM   #2
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Well, if you know the date of your last full backup, you could use "find" to
find all the files, etc. that are newer than said date.

man find
 
  


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
compare two folders bluenectar Linux - Newbie 10 08-04-2005 11:23 PM
Beyond Compare / WinDiff riluve Linux - Newbie 6 01-26-2005 08:05 AM
Directory Tree Compare/Sync for Linux Burgin Linux - Software 0 05-29-2004 09:27 PM
directory compare tmoorman Linux - Newbie 2 09-26-2003 01:45 PM
Help with a Directory Compare Script bullfrog Linux - General 1 02-04-2003 08:05 AM

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

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