# What is running sqldump?

**URL:** <https://community.freepbx.org/t/what-is-running-sqldump/39289>\
**Category:** Distro Discussion & Help\
**Tags:** asterisk, freepbx\
**Created:** [February 1, 2017, 7:42pm UTC](https://community.freepbx.org/t/what-is-running-sqldump/39289 "2017-02-01T19:42:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![byrnejb](https://community.freepbx.org/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://community.freepbx.org/u/byrnejb)\
**Post date:** [February 1, 2017, 7:42pm UTC](https://community.freepbx.org/t/what-is-running-sqldump/39289/1 "2017-02-01T19:42:40Z")

</div>

```
FreePBX distro 10.13.66-17
FreePBX 13.0.190.11
Asterisk 13.13.1

```

In top I am seeing this:

```
17777 asterisk 20 0 50824 2640 1888 R 33.5 0.1 4:03.07 mysqldump.  

```

If I read this aright then this has been running for over 4 hours. What starts it,;what database is it trying to backup; and why is it taking so long?

---

<div class="post-metadata">

**Author:** ![xrobau](https://community.freepbx.org/user_avatar/community.freepbx.org/xrobau/32/13696_2.png) [@xrobau](https://community.freepbx.org/u/xrobau)\
**Post date:** [February 1, 2017, 7:48pm UTC](https://community.freepbx.org/t/what-is-running-sqldump/39289/2 "2017-02-01T19:48:30Z")

</div>

Probably the backup module. However, that’s a REALLY long time. You might want to kill it.

---

<div class="post-metadata">

**Author:** ![byrnejb](https://community.freepbx.org/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://community.freepbx.org/u/byrnejb)\
**Post date:** [February 2, 2017, 9:22pm UTC](https://community.freepbx.org/t/what-is-running-sqldump/39289/3 "2017-02-02T21:22:48Z")

</div>

This is what is killing our system:

```
/usr/bin/mysqldump --host=localhost --port= \
  --user=freepbxuser --password=x xxxxxxxxxx asteriskcdrdb \
  --opt --skip-comments --skip-extended-insert \
  --lock-tables=false --skip-add-locks --compatible=no_table_options \
  --default-character-set=utf8

```

When this starts we lose calls and cannot get dial tone.

And I am guessing that this is the cron entry that starts it:

```
ID=freepbx_backup_3 /var/lib/asterisk/bin/backup.php --id=3

```

Why is this running every hour? Or I should ask: Why is this scheduled to run every hour? What does this give one that running it every six hours would not?

---

<div class="post-metadata">

**Author:** ![xrobau](https://community.freepbx.org/user_avatar/community.freepbx.org/xrobau/32/13696_2.png) [@xrobau](https://community.freepbx.org/u/xrobau)\
**Post date:** [February 2, 2017, 9:24pm UTC](https://community.freepbx.org/t/what-is-running-sqldump/39289/4 "2017-02-02T21:24:14Z")

</div>

> [@byrnejb](#):
>
> Why is this running every hour?

I’m guessing because someone set up a backup job to run every hour. I think that once a day is more than sufficient. It depends on how worried you are about data loss.
