Page 1 of 1
updating recording_log and using ftp

Posted:
Fri Aug 29, 2008 2:42 pm
by Op3r
Hello,
I am have a bit of homework. Here's the problem, a hard drive crashed and I managed to pull out the recordings. Now I am using an ftp server to ftp my recordings to a recording server. So I am now thinking how to update the recording_log to reflect the path of the recordings. Is it possible? as I am also going to upload all the recordings from 1 more asterisk server to the recording/archive server.

Posted:
Fri Aug 29, 2008 7:53 pm
by mflorell
I would probably write a perl script to traverse the list of recordings and use the filename to find their matching records in the database and update their paths.

Posted:
Sat Aug 30, 2008 8:29 pm
by Op3r
how about just putting the recordings back to the monitorDONE folder and use the ftp script to upload the recordings to the archive server? is this an optimal way to do it?

Posted:
Sun Aug 31, 2008 2:26 am
by mflorell
That might work, if you try it let us know how it goes.

Posted:
Sun Aug 31, 2008 5:14 am
by Op3r
ok then wish me luck!!!!!!

Posted:
Sun Aug 31, 2008 5:21 am
by Op3r
one more
if I use the ftp script will it also send the orig files to the archive server? I dont really want to lose the files on the ORIG folder because we might encounter an uncomplete recordings


Posted:
Sun Aug 31, 2008 7:21 am
by mflorell
None of the ORIG recordings should be overwritten, and none of the scripts delete files so I don't see a problem with that.

Posted:
Sun Aug 31, 2008 7:40 am
by Op3r
oh ok thanks
one more, will it be possible to upload the files in the ORIG folder too?

Posted:
Sun Aug 31, 2008 5:49 pm
by mflorell
There are no included scripts that will upload the ORIG files automatically, you would have to do that manually or write a script that would do it for you.