unattended_upgrades_ynh/scripts/backup

34 lines
1 KiB
Text
Raw Normal View History

2018-02-24 21:03:40 +01:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2018-07-13 17:38:14 +02:00
source ../settings/scripts/_common.sh
2018-02-24 21:03:40 +01:00
source /usr/share/yunohost/helpers
#=================================================
2021-07-17 17:07:13 +02:00
# DECLARE DATA AND CONF FILES TO BACKUP
#=================================================
ynh_print_info --message="Declaring files to be backed up..."
2018-02-24 21:03:40 +01:00
#=================================================
2018-02-25 14:46:16 +01:00
# BACKUP UNATTENDED-UPGRADES CONFIG
2018-02-24 21:03:40 +01:00
#=================================================
2024-01-09 17:53:54 +01:00
ynh_backup --src_path="$apticron_config"
2018-02-24 21:03:40 +01:00
2024-01-09 17:53:54 +01:00
ynh_backup --src_path="$apticron_cron"
2018-02-24 21:03:40 +01:00
2024-01-09 17:53:54 +01:00
ynh_backup --src_path="$unattended_upgrades_config"
2018-02-24 21:03:40 +01:00
2024-01-09 17:53:54 +01:00
ynh_backup --src_path="/etc/apt/apt.conf.d/02periodic"
2019-01-30 19:18:18 +01:00
#=================================================
# END OF SCRIPT
#=================================================
2021-07-17 17:07:13 +02:00
ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."