Migrating Restic backup to a different storage space

What app is this about, and its version: restic 0.18.1~ynh1
What YunoHost version are you running: 12.1.36
What type of hardware are you using: Other(?)

Describe your issue

I want to migrate from a S3 repo to a storage box accessible by sftp for my restic backup.

Access to the new storage space works, but I’d like some recommendation on the best approach:

Restart from scratch: how do I “reset” restic so that it creates the restic repo?
Copy over all the previous archives? (from a S3 server to a sftp server, that’s going to be an endeavour…).

Thanks!

Share relevant logs or error messages

Fatal: repository does not exist: unable to open config file: Lstat auto_conf/config: file does not exist
Is there a repository at the following location?
sftp://uxxxxxx-sub1@uxxxxxx-sub1.your-storagebox.de:23/auto_conf
unable to open cache: unable to locate cache directory: neither $XDG_CACHE_HOME nor $HOME are defined
unable to open cache: unable to locate cache directory: neither $XDG_CACHE_HOME nor $HOME are defined

I’d recommand to restart from scratch, it’s easier, and to keep your S3 repo for a few weeks/months in case you need to restore from earlier backups.

When you’ll edit the repository address of the Restic app, it will create a new repository if the new location is empty. (while doing the backup)

3 Likes