# I have to correct the find line in my own post

**URL:** https://forum.mautic.org/t/i-have-to-correct-the-find-line-in-my-own-post/29568
**Category:** Product Support
**Created:** [October 7, 2023, 8:14am UTC](https://forum.mautic.org/t/i-have-to-correct-the-find-line-in-my-own-post/29568 "2023-10-07T08:14:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![stefan-franz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/stefan-franz/32/12758_2.png) [@stefan-franz](https://forum.mautic.org/u/stefan-franz)
#### Post date: [October 7, 2023, 8:14am UTC](https://forum.mautic.org/t/i-have-to-correct-the-find-line-in-my-own-post/29568/1 "2023-10-07T08:14:28Z")

</div>

Continuing the discussion from [Database backup with cronjob](https://forum.mautic.org/t/database-backup-with-cronjob/29526):

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.

```auto
#!/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

```
