1
0
Fork 0
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:
Kay0u 2024-06-21 20:07:07 +02:00
parent d866d0fcaf
commit 9c033bf31f
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156
2 changed files with 10 additions and 0 deletions

View file

@ -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
#=================================================

View file

@ -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
#=================================================