Hardware: VPS bought online / Old laptop or computer / Raspberry Pi at home / Internet Cube with VPN / Other ARM board / … YunoHost version: latest I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | … Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no / yes If yes, please explain:
Description of my issue
Hello all
I’m trying to create a symbolic link from /home/yunohost.backup/archives to a USB drive that is mounted at /media/ynhrecovery (The drive is mounted and does work!)
The idea is that when I do a YNH backup the backup goes to /media/ynhrecovery instead of the default: /home/yunohost.backup/archives
-rw-r--r-- 1 root root 4343 Oct 12 17:17 20221011-202248.info.json
-rw-r--r-- 1 root root 191402393600 Oct 12 18:02 20221011-202248.tar
lrwxrwxrwx 1 root root 32 Oct 12 18:22 archives -> /home/yunohost.backups/archives/
drwx------ 2 root root 16384 Oct 12 17:08 lost+found
(The two backups already there I did manually using the cp command)
I saw archives → /home/yunohost.backup/archives
I then tried a backup of one of my apps and looked on the USB drive but it wasn’t there, it had been saved to the default directory /home/yunohost.backups/archives/
What did I miss or do wrong? Do I need to restart after?
I couldnt get it to work becuse I’m a dunce. I was creating the sybolic link in the wong place!
I deleted the archive folder in /home/yunohost.backup/ then in the same directory I created the symlink as follows:
I was always getting an error that the directory couldn’t be found, however, if I created the symbolic link in the /media/ynhrecovery/ directory it worked perfectly. backups are now going straight to my USB drive.
Thanks for your help with this, I think I now understand symlinks better.