1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lxd_ynh.git synced 2024-09-03 19:45:53 +02:00

fix backup/restore

This commit is contained in:
Kay0u 2021-03-02 15:44:51 +01:00
parent 927495f98f
commit 90fd4c284c
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
2 changed files with 4 additions and 0 deletions

View file

@ -46,6 +46,8 @@ ynh_backup --src_path="/etc/systemd/system/$app.socket"
# BACKUP VARIOUS FILES # BACKUP VARIOUS FILES
#================================================= #=================================================
ynh_backup --src_path="/var/log/$app/"
ynh_backup --src_path="/usr/local/lib/$app/" ynh_backup --src_path="/usr/local/lib/$app/"
ynh_backup --src_path="/usr/local/bin/lxc" ynh_backup --src_path="/usr/local/bin/lxc"

View file

@ -75,6 +75,8 @@ yunohost service add $app --log="/var/log/$app/$app.log" --needs_exposed_ports=6
# RESTORE VARIOUS FILES # RESTORE VARIOUS FILES
#================================================= #=================================================
ynh_restore_file --origin_path="/var/log/$app/"
ynh_restore_file --origin_path="/usr/local/lib/$app/" ynh_restore_file --origin_path="/usr/local/lib/$app/"
ynh_restore_file --origin_path="/usr/local/bin/lxc" ynh_restore_file --origin_path="/usr/local/bin/lxc"