Closed bentolor closed 8 months ago
Update: I redid the exercise, but this time with "folder_blacklist": true
for the source account. It doesn't seem to have changed for the good. I'm a little puzzled.
I only get output in the following form:
D, [2024-01-17T15:25:52.309892 #1232144] DEBUG -- : [Folder] 0 to migrate
I, [2024-01-17T15:25:52.310234 #1232144] INFO -- : Local metadata for folder '/srv/backups/imap/MyAccount/Folder' is currently stored in the version 2 format.
Migrating to the version 3 format...
Ähem... I start to feel getting lost. How'd I achieve my plan? Where is my thought error??
Hi @bentolor
I'm sorry you've run into this problem. I suspect that the recent work on speeding up large backups may have introduced a bug in handling the conversion of old backups.
If everything is working correctly, you shouldn't need to change any configuration to get this working.
I'll have a look.
@bentolor I've release v14.5.1 with a fix for this.
Thanks @joeyates for the awesome and quick fix! Tested this right away and https://github.com/joeyates/imap-backup/commit/f82fbae4443e440f48d2d96124cfd17cc5ae4268 obviously fixed this. Thanks!
Hi @joeyates
thanks to ZFS and
zfs-auto-snapshots
and furthermore having them also enabled on the relevant volume, I'm quite relaxed. Otherwise I'd have been frustrated. I'm not sure what I did wrong. So it's at least unexpected for me from a user perspective.What was I trying to accommplish
As mentioned in #191 : Restore and old, decomissioned IMAP account backup to a new IMAP account
What did I do?
newaccount@myserver.com
account viaimap-backup setup
~/.imap-backup/config.json
(see below)imap-backup migrate myoldemailadress@acme.bar newaccount@myserver.com -v
" INFO -- : Local metadata for folder '/srv/backups/imap/myoldemailadress_acme.bar/Myfolder" is currently stored in the version 2 format.
scrolled over my screenWhat was the result
/srv/backups/imap/myoldemailadress_acme.bar
folder content was purged. 6.9G of backup became a solely empty folder structure with no backup files any longer in it.What did I expect
Ideally: The target account contains my backup.
I suspect the missing folder inclusion list might be the culprit. At least, as all my accounts are in "keep all emails"-mode, I would expect my local copy not to be purged.
Did I miss something important?