Page 1 of 1

Recordings to archive server

PostPosted: Mon Sep 07, 2020 3:46 pm
by SPAMSAM
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?

Re: Recordings to archive server

PostPosted: Mon Sep 07, 2020 4:34 pm
by mflorell
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

Re: Recordings to archive server

PostPosted: Wed Sep 09, 2020 7:35 am
by SPAMSAM
Cool thanks a mil!