Skip to main content

Backup Error in 6.0.1.63 : tar -zcf

Posted by duc on Wed, 10/15/2008

Hi Guys,

When I use the backup function I've got the following error :

Error : Error creating archive, command tar -zcf /usr/share/webmin/asterisk/tlbackup.tar.gz -T /tmp/tar.driver 2>&1

I use PBX Manager 6.0.1.63. After that I tried to do it by hand :

Pbx:~# tar -zcf /usr/share/webmin/asterisk/tlbackup.tar.gz -T /tmp/tar.driver 2>&1
tar: Removing leading `/' from member names
tar: /var/lib/asterisk/moh: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors

I think it's a problem with the tar syntax, How can I fix it ?


Submitted by eeman on Wed, 10/15/2008 Permalink

what operating system are you running? you seem to be missing a critical directory /var/lib/asterisk/moh

this gets installed via 'make install' from the asterisk source

Submitted by thirdlane on Wed, 10/15/2008 Permalink

I wonder if this is an older version of Asterisk with moh directory called mohmp3?

In any case, I am adding code (in 6.0.1.64) to check for the presence of directories.

Best regards,

Alex

Submitted by duc on Thu, 10/16/2008 Permalink

Hi guys,

Thanks for the input, Alex, you're right it was a problem with the moh path, I used the old mohmp3. I changed it and update my musiconhold.conf. Now it works fine.

Thanks for your help. Duc.