1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/laverna_ynh.git synced 2024-09-03 19:36:06 +02:00
laverna_ynh/scripts/backup
eric_G 4fbabad109
Testing (#14)
* Warning

* Fix linter warnings

* Update README.md

* Set SVG badge

* Update manifest.json

* Update manifest.json

* Fix

* Fix

* Update rights (#11)

* Update rights

* 4.3

* Version 2 (#13)

* v2

* Auto-update README

* v2

* Update manifest.toml

* Update manifest.toml

* Auto-update README

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Delete DISCLAIMER.md

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
2023-11-10 13:50:40 +01:00

27 lines
856 B
Bash
Executable file

#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source /usr/share/yunohost/helpers
#=================================================
# BACKUP THE APP MAIN DIR
#=================================================
ynh_backup --src_path="$install_dir"
#=================================================
# BACKUP THE NGINX CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# END OF SCRIPT
#=================================================
ynh_print_info --message="Backup script completed for Laverna. (YunoHost will then actually copy those files to the archive)."