Change the backup location without symbolic link

:uk: English :

Hello !

How to change the yunohost backup location without using a symbolic link like in this forum post: [SOLVED] Change the backup location

If necessary I can modify the backup script, I also tried to do it with the constants present at the top but it did not work.

Thanks.


:fr: Français :

Bonjour !

Comment changer l’emplacement de sauvegarde yunohost sans utiliser de lien symbolique comme dans ce message du forum : [SOLVED] Change the backup location

Si besoin je peu modifier le script de backup, j’avais d’ailleur essayé de le faire avec les constantes présentes toute en haut mais ça n’a pas fonctionné.

Merci.

Salut Carambole c’est le Carambole du futur alors enfaite il faut juste modifier 3 constante au début du script backup.py présent dans /usr/lib/python3/dists-packages/yunohost/backup.py

BACKUP_PATH = "/test.backup"
ARCHIVES_PATH = f"{BACKUP_PATH}/archives"
APP_MARGIN_SPACE_SIZE = 100  # In MB
CONF_MARGIN_SPACE_SIZE = 10  # IN MB
POSTINSTALL_ESTIMATE_SPACE_SIZE = 5  # In MB
MB_ALLOWED_TO_ORGANIZE = 10
logger = getActionLogger("test.backup")

et ensuite pour que les backups s’affichent dans le panel admin il faut modifier /usr/lib/python3/dists-packages/yunohost/app.py

    from yunohost.permission import permission_sync_to_user
    from yunohost.regenconf import manually_modified_files
    from yunohost.utils.legacy import _patch_legacy_php_versions, _patch_legacy_helpers
    from test.backup import (
        backup_list,
        backup_create,
        backup_delete,
        backup_restore,
    )

pour trouver l’endroit dans le fichier j’ai fait ctrl-w yunohost.backup

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