![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
| |||
| 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 |
| |||
| 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 |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |