Moving to a new box

hello. I am trying to move to a new box running at a different VPS provider. I spun up a fresh MIAB instance, but i am unable to restore the backup I made. First duplicity complains /home/user-data is not empty, and when I empty that dir it says:

Blockquote
janwillem@box:~$ sudo -E duplicity restore --force file:///temp /home/user-data/
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
Traceback (innermost last):
File “/usr/lib/python3/dist-packages/duplicity/main.py”, line 72, in dup_run
with_tempdir(main)
File “/usr/lib/python3/dist-packages/duplicity/main.py”, line 56, in with_tempdir
fn()
File “/usr/lib/python3/dist-packages/duplicity/dup_main.py”, line 1647, in main
do_backup(action)
File “/usr/lib/python3/dist-packages/duplicity/dup_main.py”, line 1728, in do_backup
restore(col_stats)
File “/usr/lib/python3/dist-packages/duplicity/dup_main.py”, line 882, in restore
if not patchdir.Write_ROPaths(config.local_path, restore_get_patched_rop_iter(col_stats)):
File “/usr/lib/python3/dist-packages/duplicity/dup_main.py”, line 904, in restore_get_patched_rop_iter
backup_chain = col_stats.get_backup_chain_at_time(time)
File “/usr/lib/python3/dist-packages/duplicity/dup_collections.py”, line 1144, in get_backup_chain_at_time
raise CollectionsError(“No backup chains found”)
duplicity.dup_collections.CollectionsError: No backup chains found

What am I doing wrong?

Thanks for any help

Did you do the export PASSPHRASE command?
Your source is file:///temp, is this really a temp folder in the root? i.e. /temp?

yes

yes

I succeeded in moving the box by just copying everything in /home/user-data from the old box to the new one. However I am troubled by the fact that restoring the backup didn’t work.

I would be too…

Does duplicity collection-status file:///temp give a clue? Does ls -l /temp give reasonable output for a duplicity backup?

1 Like

OK sorry for not reacting. I moved to another VPS and this time the restore went fine. Turned I did some typo in the path somewhere.

Topic can be closed

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