#!/bin/sh

{% if ynh_apps_backup.directory is string %}
yunohost backup create --apps --output-directory {{ ynh_apps_backup.directory }}/backup_$(date +%Y%m%d_%H%M)
{% else %}
yunohost backup create --apps
{% endif %}