#848 closed enhancement (duplicate)

"tahoe backup": --prefix argument

Reported by: warner Owned by:
Priority: major Milestone: undecided
Component: code-frontend-cli Version: 1.5.0
Keywords: tahoe-backup Cc:
Launchpad Bug:

Description

I think it might be useful to add a --prefix argument to the "tahoe backup" command, which would basically strip that prefix from any absolute pathnames before checking the backupdb for a previously backed up file. This would help the use case where you mount an external drive in one place (say /Volumes/One?), use "tahoe backup" to copy it into tahoe, and later mount the same drive in a different place (say /Volumes/Two?) and want to do a backup again. If the mount point is variable, you'd probably want the backupdb contents to be compared against the per-drive path, not the mount-point-plus-drive path. Also, if you mounted a *different* drive under /Volumes/One?, you might want to exclude those paths from the backupdb check. This might suggest that the backupdb really ought to use mount-point-relative pathnames, or parent directory inode number, or something more accurate and durable than absolute pathname.

Another use case would be if you want to back up a Time Machine snapshot (named /backupdrive/snapshots/Tuesday) and then do the same backup on the next snapshot (named /backupdbdrive/snapshots/Wednesday). (you could backup the "Latest" directory, but this might change while you're running the backup, whereas the timestamped snapshot directory is immutable.

Change History (2)

comment:1 Changed at 2009-12-06T14:11:21Z by francois

  • Keywords tahoe-backup added

comment:2 Changed at 2010-01-27T22:38:25Z by warner

  • Resolution set to duplicate
  • Status changed from new to closed

oops, this is a dup of #632

Note: See TracTickets for help on using tickets.