[Box Backup] Restoring deleted files recursively

Chris Wilson boxbackup@boxbackup.org
Sat, 8 Nov 2008 22:40:44 +0000 (GMT)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---128931150-1864528584-1226184044=:29722
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi Tobias and all,

On Mon, 3 Nov 2008, Tobias Balle-Petersen wrote:

> I have the exact same problem as described by Torsten below.
> 
> > I made some tests and now i can more specific describe my problem.
> > 
> > Deleted files inside of a (not deleted) subdirectory are not restored.
> 
> I have a maildir with subfolders and want to restore all deleted mails within
> still existing directories.
> 
> The command:
> "restore -d top_dir_on_store new_folder_on_mailserver"
> 
> Restores nothing. So I have to go into every directory with bbackupquery 
> and identify if it has deleted mail, and then restore folders like that 
> one by one. So tedious to be unusable.

Sorry to hear about this problem. Please could you try the attached patch 
and see if it makes a difference for you?

This patch changes the behaviour of the "restore -d" command so that it 
restores all files, including deleted files, rather than just deleted 
files. If anyone has any objections to this new behaviour, please speak 
now, before I apply it.

Cheers, Chris.
-- 
_____ __     _
\  __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer |
\ _/_/_/_//_/___/ | Stop nuclear war http://www.nuclearrisk.org |
---128931150-1864528584-1226184044=:29722
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=bb_restore_deleted_restores_all.patch
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.64.0811082240440.29722@top.qwarx.com>
Content-Description: 
Content-Disposition: attachment; filename=bb_restore_deleted_restores_all.patch

SW5kZXg6IGxpYi9iYWNrdXBjbGllbnQvQmFja3VwQ2xpZW50UmVzdG9yZS5j
cHANCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0NCi0tLSBsaWIvYmFja3VwY2xp
ZW50L0JhY2t1cENsaWVudFJlc3RvcmUuY3BwCShyZXZpc2lvbiAyMzczKQ0K
KysrIGxpYi9iYWNrdXBjbGllbnQvQmFja3VwQ2xpZW50UmVzdG9yZS5jcHAJ
KHdvcmtpbmcgY29weSkNCkBAIC00NDAsNyArNDQwLDcgQEANCiAJLy8gbGlz
dCBvZiBmaWxlcyB3aGljaCBpcyBhcHByb3ByaWF0ZSB0byB0aGUgcmVzdG9y
ZSB0eXBlDQogCXJDb25uZWN0aW9uLlF1ZXJ5TGlzdERpcmVjdG9yeSgNCiAJ
CURpcmVjdG9yeUlELA0KLQkJUGFyYW1zLlJlc3RvcmVEZWxldGVkPyhCYWNr
dXBQcm90b2NvbENsaWVudExpc3REaXJlY3Rvcnk6OkZsYWdzX0RlbGV0ZWQp
OihCYWNrdXBQcm90b2NvbENsaWVudExpc3REaXJlY3Rvcnk6OkZsYWdzX0lO
Q0xVREVfRVZFUllUSElORyksDQorCQlCYWNrdXBQcm90b2NvbENsaWVudExp
c3REaXJlY3Rvcnk6OkZsYWdzX0lOQ0xVREVfRVZFUllUSElORywNCiAJCUJh
Y2t1cFByb3RvY29sQ2xpZW50TGlzdERpcmVjdG9yeTo6RmxhZ3NfT2xkVmVy
c2lvbiB8IChQYXJhbXMuUmVzdG9yZURlbGV0ZWQ/KDApOihCYWNrdXBQcm90
b2NvbENsaWVudExpc3REaXJlY3Rvcnk6OkZsYWdzX0RlbGV0ZWQpKSwNCiAJ
CXRydWUgLyogd2FudCBhdHRyaWJ1dGVzICovKTsNCiANCg==

---128931150-1864528584-1226184044=:29722--