In order to create daily mysql and ldap backup you can put this small script in ''/etc/cron.daily/'': #!/bin/bash mkdir -p /srv/backup mysqldump -uroot -p"$(sudo cat /etc/yunohost/mysql)" mysql > /srv/backup/backup-$(date +"%m-%d-%y").mysql slapcat > /srv/backup/backup-$(date +"%m-%d-%y").ldap find /srv/backup -mtime +10 -exec rm {} \; chown root. /srv/backup chmod -R 740 /srv/backup Make the script executable chmod +x /etc/cron.daily/backup This script save all your databases and your ldap in ''/srv/backup'' for the last 10 days.