|
From: | Dave Kempe |
Subject: | Re: [rdiff-backup-users] Changing timestamps of increments |
Date: | Tue, 28 Apr 2009 18:46:28 +1000 (EST) |
I ran into a little problem when the date/time was desynchronized between the client and server of a rdiff-backup (backup). Somehow the client’s date was shifted one month in the future, and two backups had occurred before I noticed the problem. I wrote a little script to rename all the increments back to their actual creation date, but I am unsure of whether or not this is enough. Is any time stamp information stored in the files? Or are the file names really all that need to be changed?
My script is this:
#!/bin/sh
find | grep '2009-05-' | while read file
do
newfile=`echo $file | sed -e 's/2009-05-/2009-04-/g'`
echo "rename \"$file\" to \"$newfile\""
mv "$file" "$newfile"
done
[Prev in Thread] | Current Thread | [Next in Thread] |