mirror of
https://github.com/YunoHost-Apps/dokuwiki_ynh.git
synced 2024-09-03 18:26:20 +02:00
17 lines
391 B
Bash
Executable file
17 lines
391 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# The parameter $1 is the backup directory location dedicated to the app
|
|
backup_dir=$1
|
|
|
|
# The parameter $2 is theid of the app instance
|
|
app=$2
|
|
|
|
|
|
domain=$(sudo yunohost app setting $app domain)
|
|
path=$(sudo yunohost app setting $app path)
|
|
|
|
# Backup sources & data
|
|
ynh_backup "/var/www/$app" "sources"
|
|
|
|
# Copy Nginx
|
|
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" "nginx.conf"
|