Confused about restore

117 views
Skip to first unread message

Jorge Bracer

unread,
Aug 30, 2023, 5:48:05 PM8/30/23
to Got Your Back: Gmail Backup
Hi,
I got gyb setup and it works great.  I tested a full backup and restore, and it works. Thank you! It's amazing!

However, I'm having difficulty wrapping my head as to what's going on with restore.

Test 1: 
Run a full gyb backup, delete an email from gmail, run full gyb restore.
Result:  
* GYB CLI output = "...restored single large message (1/1)"
* Deleted email reappeared in gmail, including attachment.  

Great! It's exactly what I expected.


Test 2:
Delete that same (just restored) email from gmail, then run another gyb restore.  
Result: 
*  GYB CLI output only shows "Using backup folder GYB-GMail-B...@gmail.com" ... no restore message 
* The deleted email does not show up in gmail.
* Subsequent restores have the same result.

This is confusing.  The backup folder (e.g. "GYB-GMail-...@gmail.com") should not have changed, since only one backup operation was ever done.  So I assume the deleted email is still in the backup folder.

But maybe that's not the case. Or maybe my initial guess that restore means "restore state as of the last backup operation" is not true.  

Is it "restore state as of the last backup or restore operation"? Is there another explanation?
Thanks.




 
Is it

Jorge Bracer

unread,
Aug 30, 2023, 5:56:39 PM8/30/23
to Got Your Back: Gmail Backup
I checked the backup folder (e.g. "GYB-GMail-...@gmail.com"), and the deleted email IS there.  So it's not that the restore operation removed it. But something got flagged so that it is not being restored even though it is no longer in gmail.  Thanks.

John-Kim Murphy

unread,
Aug 31, 2023, 7:20:39 AM8/31/23
to Got Your Back: Gmail Backup

https://github.com/GAM-team/got-your-back/wiki#--noresume

GYB keeps a record of messages restored to each account and will pick up where it left off should the restore not finish. The --noresume switch will make GYB ignore messages already restored and restart the restore at the beginning.

Jorge Bracer

unread,
Aug 31, 2023, 3:39:34 PM8/31/23
to Got Your Back: Gmail Backup
That's it!  
With the --noresume flag, the email gets restored.
Furthermore, even if I re-run the restore (with --noresume) action multiple times, it does not create multiple emails (as expected per documentation). 
This is really really nice.

Thank you for the explanation!

Reply all
Reply to author
Forward
0 new messages