Hi there ! Thanks for the amazing Yunohost, as always it makes everything so much simpler
I have an issue with my particular installation: Yunohost is on a VPS with a relatively small disk, too small to make backups (a backup takes ~30 GiB, and I never have more than 20 GiB free). Let’s call that machine server
I could buy an additional disk but that’s extremely expensive for what I need to do, especially since I have another machine with enough storage: let’s call that machine storage
I did this:
$ sshfs storage:/path/to/archives /home/yunohost.backup/archives
to make archives on the storage machine. Unfortunately the backup doesn’t work, this is the stacktrace from the ui:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/moulinette/interfaces/api.py", line 453, in process
ret = self.actionsmap.process(arguments, timeout=30, route=_route)
File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
return func(**arguments)
File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
result = func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/yunohost/backup.py", line 2243, in backup_create
_create_archive_dir()
File "/usr/lib/python3/dist-packages/yunohost/backup.py", line 2627, in _create_archive_dir
mkdir(ARCHIVES_PATH, mode=0o770, parents=True, gid="admins")
File "/usr/lib/python3/dist-packages/moulinette/utils/filesystem.py", line 272, in mkdir
os.mkdir(path, mode)
FileExistsError: [Errno 17] File exists: '/home/yunohost.backup/archives'
Looking at the code there is a check to see if the directory is correct:
os.path.isdir("/home/yunohost.backup/archives")
That test seems to return False in yunohost (which triggers the creation of the folder, which fails), but for some reason when run locally it returns True.
Has anyone managed to mount a directory for backups ? Am I missing anything ?