Moving to New Box, Errno 17

Trying to move & upgrade a box from ubuntu 18 to 22. All appears to go well until trying to restore from backup:

root@box:~# sudo -E duplicity restore --force file:///temp/local_backup/ /home/user-data/
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Sat Sep 14 19:46:46 2024
Error ‘[Errno 17] File exists: b’levi/roundcube.sieve’ → b’/home/user-data/mail/sieve/orban.email/levi.sieve’’ processing mail/sieve/domain.email/user.sieve
Error ‘[Errno 17] File exists: b’meli/roundcube.sieve’ → b’/home/user-data/mail/sieve/orban.email/meli.sieve’’ processing mail/sieve/domain.email/user2.sieve
Error ‘[Errno 17] File exists: b’worker/roundcube.sieve’ → b’/home/user-data/mail/sieve/domain.email/user3.sieve’’ processing mail/sieve/orban.email/worker.sieve
Error ‘[Errno 17] File exists: b’/home/user-data/owncloud/config.php’ → b’/home/user-data/owncloud-backup/2020-11-20-18:36:08/owncloud-install/config/config.php’’ processing owncloud-backup/2020-11-20-18:36:08/owncloud-install/config/config.php
Error ‘[Errno 17] File exists: b’/home/user-data/owncloud/config.php’ → b’/home/user-data/owncloud-backup/2021-10-17-07:51:27/owncloud-install/config/config.php’’ processing owncloud-backup/2021-10-17-07:51:27/owncloud-install/config/config.php
Error ‘[Errno 17] File exists: b’/home/user-data/owncloud/config.php’ → b’/home/user-data/owncloud-backup/2022-07-24-19:15:38/owncloud-install/config/config.php’’ processing owncloud-backup/2022-07-24-19:15:38/owncloud-install/config/config.php
Error ‘[Errno 17] File exists: b’/home/user-data/ssl/box.orban.email-20241029-ef325280.pem’ → b’/home/user-data/ssl/ssl_certificate.pem’’ processing ssl/ssl_certificate.pem
root@box:~# Welcome to Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-113-generic x86_64)

Any tips would be appreciated.

Just copy the unencrypted files from /home/user-data/mail/mailboxes/domain/user
to the new MIAB.

Something like sudo cp -rp /home/user-data/mail/mailboxes/domain/user >> path to destination

There may be a version issue with duplicity running on Ubuntu 18. Or search this forum how to upgrade from Ubuntu 18 which might require additional steps. But that might be time consuming if you go the restore way.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.