Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
ynh_backup.sh.j2 415 B
Newer Older
#!/bin/sh

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

{% if ynh_backup.system is false and ynh_backup.apps is false %}
    echo "Read the readme to know more about vars ynh_backup.system and ynh_backup.apps"
    exit 1
{% endif %}