duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Duplicity-talk] Status of the mega cloud module


From: Christian Camacho
Subject: [Duplicity-talk] Status of the mega cloud module
Date: Fri, 23 Sep 2016 17:05:42 -0300

Hi folks,

When I tried to use the mega module to store duplicity backups to a mega.nz cloud drive I realized that the Python library for the mega API (mega.py) was not working in Centos 7:

address@hidden ~]$ sudo duplicity --encrypt-key 79E7A7E6 ~/rpmbuild mega://email%40domain.com:address@hidden/test

Traceback (most recent call last):

  File "/bin/duplicity", line 1546, in <module>

    with_tempdir(main)

  File "/bin/duplicity", line 1540, in with_tempdir

    fn()

  File "/bin/duplicity", line 1375, in main

    action = "">

  File "/usr/lib64/python2.7/site-packages/duplicity/commandline.py", line 1117, in ProcessCommandLine

    backup, local_pathname = set_backend(args[0], args[1])

  File "/usr/lib64/python2.7/site-packages/duplicity/commandline.py", line 1006, in set_backend

    globals.backend = backend.get_backend(bend)

  File "/usr/lib64/python2.7/site-packages/duplicity/backend.py", line 223, in get_backend

    obj = get_backend_object(url_string)

  File "/usr/lib64/python2.7/site-packages/duplicity/backend.py", line 209, in get_backend_object

    return factory(pu)

  File "/usr/lib64/python2.7/site-packages/duplicity/backends/megabackend.py", line 48, in __init__

    files = self.client.get_files()

  File "/usr/lib/python2.7/site-packages/mega/mega.py", line 220, in get_files

    processed_file = self._process_file(file, shared_keys)

  File "/usr/lib/python2.7/site-packages/mega/mega.py", line 166, in _process_file

    attributes = decrypt_attr(attributes, k)

  File "/usr/lib/python2.7/site-packages/mega/crypto.py", line 70, in decrypt_attr

    return json.loads(attr[4:]) if attr[:6] == 'MEGA{"' else False

  File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads

    return _default_decoder.decode(s)

  File "/usr/lib64/python2.7/json/decoder.py", line 368, in decode

    raise ValueError(errmsg("Extra data", s, end, len(s)))

ValueError: Extra data: line 1 column 33 - line 1 column 38 (char 32 - 37)



Documentation in that library mentions it’s obsolete, pointing to the mega SDK. However there’s no written reference mentioning that duplicity can still use the Mega SDK to store backups on that cloud.

Do you know if there exists a patch for the mega.py library or if there's any plan to use the supported mega SDK?

Thanks,
/Christian



Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


reply via email to

[Prev in Thread] Current Thread [Next in Thread]