I think I have it. It took more time to workaround several issues with my Ubuntu install which were preventing the Debian package from being created than doing the changes itself and testing.
Testing was done with very short-lived backups (to avoid having to wait for days), but it should make no difference. Testing proved two problems (bugs) with the new backend, which I have now hopefully fixed:
- Missing "decode()" for "_delete", and the usual mismatch between b'' and u''
- Had to use "-f" for "mega-rm", or else deleted files end up in the MEGA account Trash, which is obviously not correct for a backup backend
Diff attached was created against:
"""
commit ff4fb49512e3593156f348bc1306f308303d69e0 (origin/master, origin/HEAD)
Author: Kenneth Loafman <email address hidden>
Date: Wed May 20 15:22:37 2020 -0500
"""
Please have a look into it and tell me if more work on this is necessary. Developed and tested on Ubuntu 20.04 LTS running x86_64 and Python 3.8.2.
I think I have it. It took more time to workaround several issues with my Ubuntu install which were preventing the Debian package from being created than doing the changes itself and testing.
Testing was done with very short-lived backups (to avoid having to wait for days), but it should make no difference. Testing proved two problems (bugs) with the new backend, which I have now hopefully fixed:
- Missing "decode()" for "_delete", and the usual mismatch between b'' and u''
- Had to use "-f" for "mega-rm", or else deleted files end up in the MEGA account Trash, which is obviously not correct for a backup backend
Diff attached was created against: 156f348bc1306f3 08303d69e0 (origin/master, origin/HEAD)
"""
commit ff4fb49512e3593
Author: Kenneth Loafman <email address hidden>
Date: Wed May 20 15:22:37 2020 -0500
"""
Please have a look into it and tell me if more work on this is necessary. Developed and tested on Ubuntu 20.04 LTS running x86_64 and Python 3.8.2.