Keep receiving emails about backups every minute

4 posts / 0 new
Last post
v4704
v4704's picture
Keep receiving emails about backups every minute

On my PBX box I keep getting those emails, almost every minute:

subject: Cron /var/lib/asterisk/bin/backup.php --id=1
message: Intializing Backup 1
Backup Lock acquired!
Running pre-backup hooks...
Adding items...
/bin/tar: Removing leading `/' from member names
/bin/tar: Removing leading `/' from member names
/bin/tar: /var/lib/asterisk/moh/manolo_camp-morning_coffee.wav: Cannot stat: Permission
denied
/bin/tar: /var/lib/asterisk/moh/macroform-robot_dity.wav: Cannot stat: Permission
denied
/bin/tar: /var/lib/asterisk/moh/macroform-cold_day.wav: Cannot stat: Permission denied
/bin/tar: /var/lib/asterisk/moh/CHANGES-asterisk-moh-opsound-wav: Cannot stat: Permission
denied
/bin/tar: /var/lib/asterisk/moh/.asterisk-moh-opsound-wav-2.03: Cannot stat: Permission
denied
/bin/tar: /var/lib/asterisk/moh/reno_project-system.wav: Cannot stat: Permission
denied
/bin/tar: /var/lib/asterisk/moh/macroform-the_simplicity.wav: Cannot stat: Permission
denied
/bin/tar: /var/lib/asterisk/moh/LICENSE-asterisk-moh-opsound-wav: Cannot stat: Permission
denied
/bin/tar: /var/lib/asterisk/moh/CREDITS-asterisk-moh-opsound-wav: Cannot stat: Permission
denied
/bin/tar: Error exit delayed from previous errors
/bin/tar: Removing leading `/' from member names
/bin/tar: Removing leading `/' from member names
/bin/tar: Removing leading `/' from member names
/bin/tar: Removing leading `/' from member names
Bulding manifest...
Creating backup...
Storing backup...
Running post-backup hooks...
Backup successfully completed!

crontab -u asterisk -l shows me:
0 0 * * * /var/lib/asterisk/bin/ampbackup.php 3
27 * * * * /var/lib/asterisk/bin/freepbx-cron-scheduler.php

And I also get this email once in a while:
subject: Cron /var/lib/asterisk/bin/ampbackup.php 3
message: /bin/sh: /var/lib/asterisk/bin/ampbackup.php: No such file or directory

PBX in a Flash Version = 1.7.5.5 Running on *HARDWARE*
FreePBX Version = 2.10.0.0
Running Asterisk Version = 1.8.3.2
Operating System = CentOS release 5.5 (Final)
Kernel Version = 2.6.18-194.26.1.el5 - 64 Bit

Backup&restore module version: 2.10.0.20

And another question,
Under backup->restore->local storage (local), I see a "migrated" folder from the old backup system, where are they stored? how can I delete those files?

Many thanks!

depster
depster's picture
Check the configuration of

Check the configuration of the MIGRATED backup settings and ensure that the time settings are configured properly.

Backups under 2.10 are stored under /var/spool/asterisk/backup/ by default.

v4704
v4704's picture
Thank you, thats where it

Thank you, thats where it was.

NSSL
NSSL's picture
2.10 Migrated backups - Major problem

I had the same problem as above after upgrading a few sites to 2.10 - Any existing backup jobs get migrated and for some reason the new "MIGRATED_previous_name" backup job runs every minute and will fill your disk causing asterisk to crash. Best to delete any backup jobs before upgrading and then recreate after .