Continuing the discussion from Database backup with cronjob:
Unfortunately the post above is closed - maybe one Moderator can merge it.
The found out that my find command in the script was wrong - it needs quotation marks if a path is in the line:
Here is the correct script example of my database saving with deleting after 30 days.
#!/bin/sh mysqldump -p'rootpassword' -u root mautic > /home/backups/mautic-database-$(date +%Y%m%d-%H%M%S).sql find /home/backups -iname "mautic-database*" -mtime +30 -delete