1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/navidrome_ynh.git synced 2024-09-03 19:46:30 +02:00
navidrome_ynh/scripts/backup
Éric Gaspar 67d16cd5c8
Testing (#98)
* preserve config file

* [autopatch] Add Common Platform Enumeration id to `manifest.json` (#80)

Co-authored-by: Yunohost-Bot <>

* Auto-update README

* Update manifest.json

* Update upgrade

* Update upgrade

* 0.48.0 (#82)

* 0.48.0

* Auto-update README

* Update manifest.json

* Auto-update README

* Update ss-desktop-player.png

* Update systemd.service

* Update install

* Update upgrade

* Update change_url

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

* Disable the activity panel that hangs some browsers (#86)

* Testing (#84)

* preserve config file

* [autopatch] Add Common Platform Enumeration id to `manifest.json` (#80)

Co-authored-by: Yunohost-Bot <>

* Auto-update README

* Update manifest.json

* Update upgrade

* Update upgrade

* 0.48.0 (#82)

* 0.48.0

* Auto-update README

* Update manifest.json

* Auto-update README

* Update ss-desktop-player.png

* Update systemd.service

* Update install

* Update upgrade

* Update change_url

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

Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Disable the activity panel that hangs some browsers

Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Auto-update README

* Update manifest.json

* Auto-update README

* Auto-update README

* 0.49.0_

* Auto-update README

* Add enable sharing to config panel

* #85

* Update change_url

* 0.49.1

* Update manifest.json

* Auto-update README

* Update manifest.json

* Update manifest.json

* Update install

* Update upgrade

* Update upgrade

* Update manifest.json

* 0.49.2

* Auto-update README

* cleaning

* Auto-update README

* Auto-update README

* 0.49.3

* Auto-update README

* Version 2 (#97)

* v2

* v2

* v2

* v2

* Auto-update README

* v2

* Update upgrade

* Update upgrade

---------

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

* Update navidrome.toml

* Update config_panel.toml

* Fix

* Update manifest.toml

* Update manifest.toml

* Auto-update README

* cleaning

* Auto-update README

---------

Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: selfhoster1312 <121760708+selfhoster1312@users.noreply.github.com>
2023-02-16 19:21:12 +01:00

48 lines
1.6 KiB
Bash

#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers
#=================================================
# DECLARE DATA AND CONF FILES TO BACKUP
#=================================================
ynh_print_info --message="Declaring files to be backed up..."
#=================================================
# 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"
#=================================================
# SPECIFIC BACKUP
#=================================================
# BACKUP SYSTEMD
#=================================================
ynh_backup --src_path="/etc/systemd/system/$app.service"
#=================================================
# BACKUP VARIOUS FILES
#=================================================
ynh_backup --src_path="/var/lib/$app"
#=================================================
# END OF SCRIPT
#=================================================
ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."