[SOLVED] Change the backup location



Comment changer l’emplacement des sauvegardes yunohost pour les enregistrer sur un autre disque dur




How to change the yunohost backup location for saving in a other hard drive


Firstly you need to mount your second hard drive on starting if it isn’t done. In this example we will consider your harddrive is mounted on /mnt/hdd/

Create a dir for your backup in your second hdd
mkdir -p /mnt/hdd/archives

Copy your current archives into
cp -R /home/yunohost.backup/archives/. /mnt/hdd/archives/

Delete the archive directory on the first hdd
rm -Rf /home/yunohost.backup/archives

Create a symbolic link
ln -s /mnt/hdd/archives /home/yunohost.backup/archives

You may give admin right to /mnt/hdd/archives and /home/yunohost.backup/archives

Another solution could be to define your second hdd (or a partition) as a mounting point directly on /home/yunohost.backup/archives

1 Like

This method work in the command line with the yunohost backup but with the web interface it doesn’t work

The log says

Archive de sauvegarde incorrecte

The second solution work