diff --git a/conf/monitor-backup b/conf/monitor-backup index 7ecc10b..dedb486 100644 --- a/conf/monitor-backup +++ b/conf/monitor-backup @@ -1,2 +1,2 @@ SHELL=/bin/bash -0 9,20 * * * root : Monitor __SSH_USER__ backup ; ALERT_DELAY="$(grep '^alert_delay: ' /etc/yunohost/apps/__APP__/settings.yml | awk -F\' '{print $2}')"; [[ $(find /home/__SSH_USER__/backup/data -follow -mtime -${ALERT_DELAY} -ls | wc -l) > 0 ]] || ( echo "No file has been backuped in /home/__SSH_USER__ since ${ALERT_DELAY} days" | mail -s "[YNH] Backup missing : __SSH_USER__" $(grep '^alert_mails: ' /etc/yunohost/apps/__APP__/settings.yml | awk '{print $2}')) +0 9,20 * * * root : Monitor __SSH_USER__ backup ; ALERT_DELAY="$(grep '^alert_delay: ' /etc/yunohost/apps/__APP__/settings.yml | awk -F\' '{print $2}')"; [[ $(find __DATADIR__/backup/data -follow -mtime -${ALERT_DELAY} -ls | wc -l) > 0 ]] || ( echo "No file has been backuped in __DATADIR__ since ${ALERT_DELAY} days" | mail -s "[YNH] Backup missing : __SSH_USER__" $(grep '^alert_mails: ' /etc/yunohost/apps/__APP__/settings.yml | awk '{print $2}')) diff --git a/manifest.json b/manifest.json index 0388c8a..9c86660 100644 --- a/manifest.json +++ b/manifest.json @@ -48,8 +48,8 @@ "name": "datadir", "type": "string", "ask": { - "en": "Indicate the directory where create the user directory with the borg archive", - "fr": "Indiquez le dossier où créer le dossier utilisateur contenant l'archive borg" + "en": "Indicate the path of the ssh user home directory where create the borg archive", + "fr": "Indiquez le chemin du dossier de l'utilisateur ssh où créer l'archive borg" }, "default": "/home/__SSH_USER__" },