Restore Meta-Data from Bricklevel Backup

  • Hi there, as result of a Powerfault the server was switched off. After reboot one of our Users has lost her Address History. I wanted to do a restore with kopano-backup --restore --only-meta -u username /path/to/backup/username
    But this has no Effects. Any suggestions how I can check what / if anything is restored?

  • Kopano

    hi @digrom,

    you can specify the loglevel of kopano-backup by adding for example -l debug to your command.

    From man kopano-backup:

           --log-level, -l NAME
               Specify log-level, for example, 'error', 'warning' 'info' or 'debug'.

  • Thanks Felix,

    sorry I could have thought it myself.
    So I see it is restoring the Meta data:

    root@kopano:/mnt/backupspace/kopano/brick# kopano-backup --restore --only-meta -u keicher -l debug /mnt/backupspace/kopano/brick/keicher/
    2019-04-29 11:25:44,682 - backup - INFO - starting backup
    2019-04-29 11:25:44,687 - backup - INFO - starting restore of /mnt/backupspace/kopano/brick/keicher
    2019-04-29 11:25:44,787 - backup - INFO - restoring to store 0000000038A1BB1005E5101AA1BB08002B2A56C200007A617261666136636C69656E742E646C6C0000000000563201BA714A4F429C9EDCAF47D485F401000000010000006EF918943AEF4D4F99554E7B9A1EC74970736575646F3A2F2F556E6B6E6F776E00
    2019-04-29 11:25:45,009 - backup - INFO - restoring metadata
    2019-04-29 11:25:45,137 - backup - INFO - restore completed in 0.35 seconds (0 changes, ~0.00/sec, 0 errors)
    2019-04-29 11:25:45,687 - backup - INFO - stopping backup

    But since it has no Effect, I wonder if there is no Meta-data in the backup. I also tested the restore from another user with similar Rights , after doing a fresh backup from that user , but still no Address History in the target user.
    I just want to have an AddressHistory , maybe from another user here, that would help.

  • Kopano

    @digrom were you logged in with the user while restoring this? afaik all webapp settings are a big json blob. this blog is only read at login and then at some intervals stored back to the server.

    So the thing you could check is of you see the restored data when you log out, restore log back in. for restoring just parts of the settings maybe the webapp developers have an idea.

  • The user was logged in during the restore, i ran the restore again with the user not logged in but still I get :

    2019-04-29 12:32:12,150 - backup - INFO - restore completed in 0.23 seconds (0 changes, ~0.00/sec, 0 errors)

    of course I checked later though restore showed me the 0 changes, but - as expected - no history.
    The Question is, why is nothing restored, i can’t do anything else to have the meta data in the backup than “kopano-backup -O /path/to/backup” ? In my case I run it with --skip-junk and --skip-deleted.
    Am I right?

Log in to reply