Garayed.com  

Go Back   Garayed.com > Linux
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-21-2006, 11:08 PM
dgg
 
Posts: n/a
Default Questions on using Diff and comparing directories

EXDATE=`date +%F`
PRIDATE=`date +"%F" --date=yesterday`
SOURCE=/home #Source Directory variable
COMPARE=/home/testcopies/$PRIDATE #Directory from prior copy
DESTINATION=/home/testcopies/$EXDATE #Destination Directory variable
DIFFLOG=$DESTINATION/$EXDATE



# first thing we need to do is to create a Directory that will be the
destination of our incremental copies
#mkdir `date +%F`

/bin/pwd
mkdir -p $DESTINATION

# we then need a log that will store the differences between our normal
working directories and what we incrementally
#backed up yesterday. We then diff info to that log.

touch $DIFFLOG
diff -q --recursive -c --exclude=testcopies $SOURCE $COMPARE >
$DESTINATION/$EXDATE

echo $DIFFLOG

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-22-2006, 12:30 AM
Dan C
 
Posts: n/a
Default Re: Questions on using Diff and comparing directories

On Tue, 21 Feb 2006 15:11:35 -0800, dgg wrote:

> I don't know what the heck happened here. I have re-posted my question.
> Sorry.


What happened here is that you're posting from Google Groups, using
Windoze. What did you expect to happen? Sorry, indeed.

--
If you're not on the edge, you're taking up too much space.
Linux Registered User #327951

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:09 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.