Giter VIP home page Giter VIP logo

Comments (5)

beamends avatar beamends commented on June 20, 2024 1

PS. if i change the task to "--restore-missing" (i just noticed that option) - I get the following output

      INFO 2023-04-18 14:18:02,454 - Filter options: missing
      INFO 2023-04-18 14:18:02,455 - Scanning backup storage...
      INFO 2023-04-18 14:18:07,923 - Stored items: 476545
      INFO 2023-04-18 14:18:07,923 - Loading labels...
      INFO 2023-04-18 14:18:08,044 - Labels loaded successfully (23)
      INFO 2023-04-18 14:18:08,044 - Getting labels from server ([email protected])
      INFO 2023-04-18 14:18:08,049 - file_cache is only supported with oauth2client<4.0.0
      INFO 2023-04-18 14:18:08,260 - Filtering messages...
      INFO 2023-04-18 14:18:10,367 - Number of potentially affected messages: 238272
      INFO 2023-04-18 14:18:10,367 - Upload messages...
      INFO 2023-04-18 14:18:10,368 - 104aab753596579e Restoring message...
      INFO 2023-04-18 14:18:10,369 - 104a8d63e4dbd03e Restoring message...
      INFO 2023-04-18 14:18:10,369 - 104a8db2bbbbffb8 Restoring message...
      INFO 2023-04-18 14:18:10,370 - 104a8b534dcad747 Restoring message...
      ERROR 2023-04-18 14:18:10,370 - 104a8d63e4dbd03e Exception: Not implemented for different emails
      Traceback (most recent call last):
        File "/home/russ/.local/lib/python3.8/site-packages/gwbackupy/gmail.py", line 453, in __restore_message
          label_ids = self.__get_restore_label_ids(
        File "/home/russ/.local/lib/python3.8/site-packages/gwbackupy/gmail.py", line 374, in __get_restore_label_ids
          raise NotImplementedError("Not implemented for different emails")
      NotImplementedError: Not implemented for different emails
      INFO 2023-04-18 14:18:10,371 - 104a95fc5b5a2356 Restoring message...
      ERROR 2023-04-18 14:18:10,382 - 104aab753596579e Exception: Not implemented for different emails
      Traceback (most recent call last):
        File "/home/russ/.local/lib/python3.8/site-packages/gwbackupy/gmail.py", line 453, in __restore_message
          label_ids = self.__get_restore_label_ids(
        File "/home/russ/.local/lib/python3.8/site-packages/gwbackupy/gmail.py", line 374, in __get_restore_label_ids
          raise NotImplementedError("Not implemented for different emails")
      NotImplementedError: Not implemented for different emails
      ERROR 2023-04-18 14:18:10,392 - 104a8db2bbbbffb8 Exception: Not implemented for different emails
      Traceback (most recent call last):
        File "/home/russ/.local/lib/python3.8/site-packages/gwbackupy/gmail.py", line 453, in __restore_message
          label_ids = self.__get_restore_label_ids(
        File "/home/russ/.local/lib/python3.8/site-packages/gwbackupy/gmail.py", line 374, in __get_restore_label_ids
          raise NotImplementedError("Not implemented for different emails")
      NotImplementedError: Not implemented for different emails

from gwbackupy.

kamarton avatar kamarton commented on June 20, 2024

What happen if remove --restore-deleted parameter?

gwbackupy --credentials-filepath restore-account-creds.json --workdir /mnt/gmail gmail restore --email [email protected] --to-email [email protected]

from gwbackupy.

beamends avatar beamends commented on June 20, 2024

gwbackupy --credentials-filepath restore-account-creds.json --workdir /mnt/gmail gmail restore
--email [email protected] --to-email [email protected]
WARNING 2023-04-18 14:22:02,873 - Tasks not found, see more e.g. --restore-deleted

What happen if remove --restore-deleted parameter?

gwbackupy --credentials-filepath restore-account-creds.json --workdir /mnt/gmail gmail restore --email [email protected] --to-email [email protected]

from gwbackupy.

kamarton avatar kamarton commented on June 20, 2024

@beamends if possible, please test it. Within a few days, the package will have a new release version.

pip3 uninstall gwbackupy
pip3 install https://github.com/smartondev/gwbackupy/archive/72-implement-and-fix-gmail-restore-to-another-account.zip

Use --restore-missing parameter to restore different account.

Please note that the issue #26 still persists, causing repeated restorations to result in redundant email restorations in the destination account.

from gwbackupy.

kamarton avatar kamarton commented on June 20, 2024

fixed in 0.11.0

from gwbackupy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.