[Box Backup] different container ID messages
boxbackup at fluffy.co.uk
Thu Mar 3 17:42:18 GMT 2005
On 3 Mar 2005, at 17:27, Robert Shaw wrote:
> On Mar 3, 2005, at 9:22 AM, Ben Summers wrote:
>> I shouldn't have mentioned it.
> Why? No harm done, if anything, maybe I (or someone) can help write
> the UI piece for you. If you don't want to see this type of capability
> used, then it's your right to remove it, you are the author of course.
> If you give me some pointers where to look and what to send, maybe I
> can fiddle with it and come up with a patch to add this capability.
Actually, now I've looked at it, it isn't quite as advanced as I lead
you to believe. Oh well. In a BackupStoreDirectory, you can set
BackupStoreDirectory::Entry::Flags_RemoveASAP on an entry, and then
housekeeping will remove it as soon as it's old or deleted. So the
"hard bit" is done.
But, you'd need to implement a command in the protocol
bin/bbstored/backupprotocol.txt and then
lib/bbstored/BackupCommands.cpp which would recursively apply an
arbitrary flag (because it'd be nice to have this generic for some
future stuff I'm planning) to directories and files.
Then you would modify bbackupquery to send this new command, maybe with
a "setflags" command. There's already a -w switch implemented which
puts the connection into read/write mode.
But, if you feel like a challenge...
More information about the Boxbackup