mirror of
https://github.com/YunoHost-Apps/haste_ynh.git
synced 2024-09-03 20:36:28 +02:00
0e1eafe7e0
* Upgrade to v0.1.2024.07.26 (#49) (#50)
* Upgrade sources
- `main` v0.1.2024.07.26: 87a6a88449...a56763258b
* Auto-update READMEs
Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
* [autopatch] Automatic patch attempt for helpers 2.1
* cleaning
---------
Co-authored-by: eric_G <46165813+ericgaspar@users.noreply.github.com>
Co-authored-by: Yunohost-Bot <>
36 lines
973 B
Bash
Executable file
36 lines
973 B
Bash
Executable file
#!/bin/bash
|
|
|
|
source ../settings/scripts/_common.sh
|
|
source /usr/share/yunohost/helpers
|
|
|
|
ynh_print_info "Declaring files to be backed up..."
|
|
|
|
#=================================================
|
|
# BACKUP THE APP MAIN DIR
|
|
#=================================================
|
|
|
|
ynh_backup "$install_dir"
|
|
|
|
#=================================================
|
|
# BACKUP DATA_DIR DIRECTORY
|
|
#=================================================
|
|
|
|
ynh_backup "$data_dir"
|
|
|
|
#=================================================
|
|
# SYSTEM CONFIGURATION
|
|
#=================================================
|
|
|
|
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
|
|
|
ynh_backup "/etc/logrotate.d/$app"
|
|
|
|
ynh_backup "/usr/bin/$app"
|
|
|
|
ynh_backup "/etc/systemd/system/$app.service"
|
|
|
|
#=================================================
|
|
# END OF SCRIPT
|
|
#=================================================
|
|
|
|
ynh_print_info "Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
|