FIXED: 17755 daily backup prob

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
when I run /etc/cron.daily/daily-backup.cron i get the following during script execution:

Code:
root@pbx:~ $ /etc/cron.daily/daily-backup.cron 
ls: /var/lib/asterisk/backups/piafbackup/*.tar.gz: No such file or directory
/etc/cron.daily/daily-backup.cron: line 202: $DIRECTORY/"MySQLDump-"$BACKUPFILE.sql.gz: ambiguous redirect
mysqldump: Got errno 32 on write

the script continues, but is it missing the sql part of the backup?

I get this on this different machines

Thanks
Myk
 
I have made a few mods.... interesting as all of a sudden I could duplicate this on my purple box... seems to be fixed now. I have pushed out an update and it is available now. Here is the recommended fix


1. Run update-programs either from the cli or the new pbx-menu

2. Copy your /etc/pbx/daily-backup.cron file somewhere

3. run install-dailybackup from the cli or from pbx-menu

4. Once it completes copy your daily-backup.conf back into /etc/pbx and overwrite the default one that was installed.

5. give it a whirl.

Hope this helps.

Tom
 
testing the update backup fix now

btw :

Code:
-bash-3.2# pbx-menu
There is a missing file! Installing now please be patient!
pbx-menu: line 7: $LOGDIRNAME: ambiguous redirect
Missing file installed! Now loading program
-bash-3.2#
:(

I run it again, and above is all I get.....

Myk
 
suggestion on the install-daily and diskbackup scripts....

if their .conf file exists in /etc/pbx - rename it to *.old and then install new .conf file. As you know, someone is going to update and forget to keep a copy of their old .conf file....

Myk
 
btw, new script processed the backup without a hitch - thanks!

I like the time in the filename, as the darn pogoplug does not display any times in their web interface.

Now I just need to figure out a way to keep x number of backups and delete the rest....

Thanks again!

Myk
 

Members online

No members online now.

Forum statistics

Threads
26,688
Messages
174,412
Members
20,259
Latest member
Fadeek86
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top