mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
15 lines
312 B
Bash
Executable file
15 lines
312 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Exit hook on subcommand error or unset variable
|
|
set -eu
|
|
|
|
# Source YNH helpers
|
|
source /usr/share/yunohost/helpers
|
|
|
|
# Backup destination
|
|
backup_dir="${1}/conf/cron"
|
|
|
|
# Backup the configuration
|
|
for f in $(ls -1B /etc/cron.d/yunohost* 2> /dev/null); do
|
|
ynh_backup "$f" "${backup_dir}/${f##*/}"
|
|
done
|