candera / hobocopy

An open source backup tool for Windows
http://candera.github.com/hobocopy/
MIT License
176 stars 52 forks source link

Wrong source directory is being copied #28

Open candera opened 13 years ago

candera commented 13 years ago

Background

When running hobocopy with the following command line:

/skipdenied /y /verbosity=3 /recursive /statefile=C:\data\backup\backup.state /clear C:\data \\avalon\backup\ashendel\full-0

The directory C:\data is not backed up. Rather, it appears to be attempting to copy all of C:.

Additional information: C:\data is a junction point, as are many of the directories on C:.

Expected Behavior

C:\data is the only directory that should be backed up.

candera commented 13 years ago

Looks to be an issue with the fact that C:\data is a mount point. There's even a comment in the code that says, TODO: Eventually we'll have to deal with mount points. Not sure how to deal with this yet.

candera commented 13 years ago

Potential workaround: run it against the target of the mount point (in this case C:\mount\d2\data rather than C:\data. Trying this out now. If it works, considering marking this "won't fix". But I've also got a mount point within that tree that points back to another drive. But that is not optional: mount points appearing somewhere in the hierarchy have to work.

candera commented 13 years ago

OK, that worked: it was able to descend into mount points that span disks. So there's a workaround. But it's still broken and needs to be fixed. Just not sure how or when.