Option for adding recordings to backup.pl script

Discussions about new features or changes in existing features

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Option for adding recordings to backup.pl script

Postby carpenox » Tue May 24, 2022 8:17 am

What do you think Matt? Adding the option to include all recordings in the backup script, or to include recordings with a date trigger option as well such as --recordings --rec-age=60

I dunno, it seems like a smart play to me


Chris
Alma Linux 8.5 | Version: 2.14-858a | BUILD: 220513-0819 | SVN Version: 3602 | DB Schema Version: 1661 | Asterisk 16.17.0-vici
www.CyburDial.net -:- 725-22-CYBUR -:- My Blog: http://vicidial.blog -:- Whatsapp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 1845
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Option for adding recordings to backup.pl script

Postby mflorell » Tue May 24, 2022 11:38 am

I assume you're talking about call recordings here. It's not a bad idea at all, but the backup script was really designed for regular quick backups of servers, and as such, having a call recordings option was not really a priority.
mflorell
Site Admin
 
Posts: 17995
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Option for adding recordings to backup.pl script

Postby williamconley » Tue May 24, 2022 11:57 am

carpenox wrote:What do you think Matt? Adding the option to include all recordings in the backup script, or to include recordings with a date trigger option as well such as --recordings --rec-age=60

I dunno, it seems like a smart play to me


Chris

Note that recordings can take up a LOT of disk space. Backing up all the recordings (or even a subset of them) nightly would be prohibitive. Especially with that "seven day backup set" presently in use.

The recording management scripts (that mix, compress, and store the recording, roughly every three minutes) have a brother that will push to FTP. Each recording. One at a time. As they arrive, they get mixed, compressed, stored ... and then offloaded to an FTP service (IF you activate the ftp script). There's even a secondary ftp push to push all the files already on FTP to FTP2. And each of these "pushes" moves the compressed file to a new folder so any "next step" has a folder of files awaiting management. In essence, this management of a lineup makes "nightly backup" possible if you only run the "push to ftp" scripts at night, but most of our call centers push the recordings to FTP service all day long. At that point, redundant backups (for legally required files, so a drive failure doesn't cause a law to be broken by not having the required recording) are accomplished with the FTP2 script.

And that's already built-in. Loaded into crontab -e (but commented out).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 19952
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Option for adding recordings to backup.pl script

Postby carpenox » Tue May 24, 2022 12:08 pm

Yea but i think to have it not as a default option but as a trigger for manual backups when moving servers or even just doing a weekly or monthly backup would be extremely helpful to a lot of people
Alma Linux 8.5 | Version: 2.14-858a | BUILD: 220513-0819 | SVN Version: 3602 | DB Schema Version: 1661 | Asterisk 16.17.0-vici
www.CyburDial.net -:- 725-22-CYBUR -:- My Blog: http://vicidial.blog -:- Whatsapp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 1845
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Option for adding recordings to backup.pl script

Postby williamconley » Tue May 24, 2022 12:13 pm

I'm not sure I'm onboard.

Anyone actually making recordings is likely to be using a LOT of drive space. Nightly backups have seven copies. Seven copies of ALL the recordings on the drive, which defy compression as MP3's do, would more likely than not cause a lot of places who turn that feature on to fill their HD even if they have a 1T HD or larger. Whereas the FTP Push (which already exists) allows moving the recordings to ANY other server, including the archive server, and keeping a single copy. If redundancy is requires, there's the FTP2 script. If "mission critical" redundancy is required, a mirror of that FTP server's HD is likely in place.

But I've seen too many clients fill their HDs during the nightly backup just because they're archiving their VM, I'm pretty sure it would cause a lot more problems if Recordings were an option. Too many "hey, I think that sounds like a good idea! Lets back up everything" reflexes out there.

IMHO 8-)

and it's not like it's hard to back up a folder with tar -xzf anyhoo. lol. It's not like there is some sort of requirement to also grab web files and configuration files for asterisk and linux ... these are just folders with recordings in them. Honestly if you can't figure out how to back those up using tar ... you should probably just be using the FTP scripts built in to the exiting Vicidial core.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 19952
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Option for adding recordings to backup.pl script

Postby carpenox » Tue May 24, 2022 7:25 pm

Is not that I or some people dont know how to do it, its just something that would make it easier for the general public
Alma Linux 8.5 | Version: 2.14-858a | BUILD: 220513-0819 | SVN Version: 3602 | DB Schema Version: 1661 | Asterisk 16.17.0-vici
www.CyburDial.net -:- 725-22-CYBUR -:- My Blog: http://vicidial.blog -:- Whatsapp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 1845
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Option for adding recordings to backup.pl script

Postby williamconley » Wed May 25, 2022 12:14 pm

carpenox wrote:... would make it easier for the general public

That was my point: It would make it easier for the General Public to fill their HD and crash their system.

That same general public could just as easily use the existing audio management as designed and NOT fill their HDs.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 19952
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Option for adding recordings to backup.pl script

Postby carpenox » Fri Jun 03, 2022 10:04 am

lol whatever, again, its to be used as a TRIGGER for a one time use WHEN needed, not on a daily backup, but thx for sharing your input
Alma Linux 8.5 | Version: 2.14-858a | BUILD: 220513-0819 | SVN Version: 3602 | DB Schema Version: 1661 | Asterisk 16.17.0-vici
www.CyburDial.net -:- 725-22-CYBUR -:- My Blog: http://vicidial.blog -:- Whatsapp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 1845
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL


Return to Features

Who is online

Users browsing this forum: No registered users and 3 guests