Hi,
I am on V76 and trying to run a backup, but I get this error:
from duplicity.main import dup_run
ModuleNotFoundError: No module named ‘duplicity.main’
When trying to run a full backup, here is what I get:
Traceback (most recent call last):
File “/usr/bin/duplicity”, line 5, in
from duplicity.main import dup_run
ModuleNotFoundError: No module named ‘duplicity.main’
Something is wrong with the backup:
root@mail:~/mailinabox# sudo management/backup.py --full
Traceback (most recent call last):
File “/usr/bin/duplicity”, line 5, in
from duplicity.main import dup_run
ModuleNotFoundError: No module named ‘duplicity.main’
Traceback (most recent call last):
File “/root/mailinabox/management/backup.py”, line 654, in
perform_backup(full_backup)
File “/root/mailinabox/management/backup.py”, line 323, in perform_backup
shell(‘check_call’, [
File “/root/mailinabox/management/utils.py”, line 126, in shell
ret = getattr(subprocess, method)(cmd_args, **kwargs)
File “/usr/lib/python3.10/subprocess.py”, line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[’/usr/bin/duplicity’, ‘full’, ‘–verbosity’, ‘warning’, ‘–no-print-statistics’, ‘–archive-dir’, ‘/home/user-data/backup/cache’, ‘–exclude’, ‘/home/user-data/backup’, ‘–exclude’, ‘/home/user-data/owncloud-backup’, ‘–volsize’, ‘250’, ‘–gpg-options’, “‘–cipher-algo=AES256’”, ‘–allow-source-mismatch’, ‘/home/user-data’, ‘file:///home/user-data/backup/encrypted’]’ returned non-zero exit status 1.
I have gone through a number of posts but there are many different solutions and I am not tech enough to understand the best one: any suggestion for v76?
Thank you
Fabio