mirror of
https://github.com/YunoHost-Apps/borg_ynh.git
synced 2024-09-03 18:16:05 +02:00
backup/restore backup-with-borg and logging files
This commit is contained in:
parent
d866d0fcaf
commit
9c033bf31f
2 changed files with 10 additions and 0 deletions
|
@ -22,6 +22,9 @@ ynh_backup --src_path="/etc/sudoers.d/$app"
|
|||
ynh_backup --src_path="/root/.ssh/id_${app}_ed25519" --not_mandatory
|
||||
ynh_backup --src_path="/root/.ssh/id_${app}_ed25519.pub" --not_mandatory
|
||||
|
||||
ynh_backup --src_path="$install_dir/backup-with-borg"
|
||||
ynh_backup --src_path="$install_dir/logging.conf"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
|
@ -37,6 +37,13 @@ chmod go=--- "/etc/yunohost/hooks.d/backup_method/05-${app}_app"
|
|||
ynh_restore_file --origin_path="/etc/sudoers.d/$app"
|
||||
chown root:root "/etc/sudoers.d/$app"
|
||||
|
||||
ynh_restore_file --origin_path="$install_dir/backup-with-borg"
|
||||
chmod u+x "$install_dir/backup-with-borg"
|
||||
chown "$app:$app" "$install_dir/backup-with-borg"
|
||||
|
||||
ynh_restore_file --origin_path="$install_dir/logging.conf"
|
||||
chown "$app:$app" "$install_dir/logging.conf"
|
||||
|
||||
#=================================================
|
||||
# RESTORE SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue