[Dirvish] File Reorginization?

Nathan Hunsperger dirvish at hunsperger.com
Fri Feb 25 11:51:20 PST 2005


I'm not totally clear on if you are hoping to get Dirvish/rsync to do
the re-hardlinking for you, or if you want to do this by hand.

If you were to do some spring cleaning and just organize your files
(though I usually associate spring cleaning with depositing my rats
nest into the garbage...), Dirvish itself would not be able to handle
hardlinking for you.  Instead, for every file that was moved, Dirvish
would place a new copy onto the backup.  Dirvish relies on JW's patch
to rsync which provides the hardlinking ability; This functionality,
however, only works on files with the same sub-path.

However, if you can afford the space required for a complete new backup,
you could effect this change yourself.  Once Dirvish completed (and
before the next backup), you could go into the repository, and manually
remove files and hardlink them to the previous backup as appropriate.
As you mentioned, a script that did this for you would keep you from
pulling out your hair.  As far as Dirvish is concerned, this mucking
with the backup won't affect anything, other than keep disk usage
down...Dirvish doesn't maintain any state with regards to file type.

That said, I haven't tried this, and am just relying on my understanding
of the Dirvish internals.  I would recommend you create a new vault to
test your script and procedures on before you do so to your main backup.

- Nathan

On Fri, Feb 25, 2005 at 02:20:03AM -0800, Steve Ramage wrote:
> Lets say I wanted to do a major reorginzation of the files in one of my 
> vaults. I've basically just been throwing stuff in my "My Documents" 
> folder since high school and its become quiet a mess. Lets say I spent a 
> day doing spring cleaning, is there a way that after the end of it, I 
> could get dirvish or rsync to be able to hardlink the changed files and 
> folder structure? I understand it would take a while, but maybe once I 
> known it had been done, run a command that takes two arguements, last 
> days deposit, and today's, generates a list of file sizes, modification 
> dates, and md5sums for both. Then checks todays vault for a file from 
> yesterday if its not in the same positition, search the list, and if 
> they match, maybe do a more exhaustive check of the files, but if they 
> match, delete the new one and hardlink it to the old one?
> Steve Ramage
> ---------------
> Steve Ramage
> SJrX Networks
> http://www.sjrx.net.
> Vancouver, BC
> Jabber/XMPP: sjr A.T. sjrx.net
> _______________________________________________
> Dirvish mailing list
> Dirvish at dirvish.org
> http://www.dirvish.org/mailman/listinfo/dirvish

More information about the Dirvish mailing list