Comments (5)
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.
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.
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.
@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.
fixed in 0.11.0
from gwbackupy.
Related Issues (20)
- Add unittests
- implement circle ci
- Storage mutation increase from seconds to msec HOT 1
- Service provider interface
- handle kill signalls
- report sending to email
- exception if cli started without parameters
- web interface for stored item listing HOT 1
- docker container HOT 2
- Error if python 3.7 used
- local storage add content hashing to gmail message object
- OAuth token initialization command
- OAuth token check command
- Separated OAuth token storage
- After OAuth authentication check email matches
- gmail: Option for storing message files without gz compression
- gmail/restore: remove restore_deleted and restore_missing parameters from restore method
- SA not working HOT 6
- gmail: deleted email storing forever problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwbackupy.