Recordings to archive server

All installation and configuration problems and questions

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

Recordings to archive server

Postby SPAMSAM » Mon Sep 07, 2020 3:46 pm

This is a fairly version agnostic question but is related to v 2.14 and up I guess.

When setting a vicidial asterisk server to store recordings on an archive server via ftp, does the cron check that the recording has been moved over to the ftp server be fore deleting the file locally?

e.g. what happens when there is a firewalling issue that prevents the recordings from being synced?
SPAMSAM
 
Posts: 70
Joined: Tue Jan 17, 2017 4:00 am

Re: Recordings to archive server

Postby mflorell » Mon Sep 07, 2020 4:34 pm

There are many options on that script, you probably want to try the "--ftp-validate" option, although this might not work on all FTP servers depending on how they are set up.

Code: Select all
# /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --help
allowed run time options:
  [--help] = this screen
  [--debug] = debug
  [--debugX] = super debug
  [--test] = test
  [--transfer-limit=XXX] = number of files to transfer before exiting
  [--list-limit=XXX] = number of files to list in the directory before moving on
  [--debugX] = super debug
  [--GSM] = copy GSM files
  [--MP3] = copy MPEG-Layer-3 files
  [--OGG] = copy OGG Vorbis files
  [--WAV] = copy WAV files
  [--GSW] = copy GSM with RIFF headers and .wav extension files
  [--GPG] = copy GPG encrypted files
  [--nodatedir] = do not put into dated directories
  [--YMDdatedir] = put into Year/Month/Day dated directories
  [--YearYMDdatedir] = put into Year/YYYYMMDD dated directories
  [--localdatedir] = create dated directories inside of FTP directory on local server
  [--run-check] = concurrency check, die if another instance is running
  [--max-files=x] = maximum number of files to process, defaults to 100000
  [--ftp-server=XXX] = FTP server
  [--ftp-port=XXX] = FTP server port
  [--ftp-login=XXX] = FTP server login account
  [--ftp-pass=XXX] = FTP server password
  [--ftp-dir=XXX] = FTP server directory
  [--ftp-persistent] = Does not log out between every file transmission
  [--ftp-validate] = Checks for a file size on the file after transmission
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Recordings to archive server

Postby SPAMSAM » Wed Sep 09, 2020 7:35 am

Cool thanks a mil!
SPAMSAM
 
Posts: 70
Joined: Tue Jan 17, 2017 4:00 am


Return to Support

Who is online

Users browsing this forum: No registered users and 53 guests