rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[rdiff-backup-users] Changing timestamps of increments


From: Matthew Lowe
Subject: [rdiff-backup-users] Changing timestamps of increments
Date: Mon, 27 Apr 2009 11:49:52 -0600

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

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]