The following fields let you configure how many days you want to keep CDRs in local disk.
basepath/opt/denovo/dnl_softswitch/cdr/# Compress CDR all data older than this value (in days)# Default: 0 - do not compress .cdr fileskeep_cdr3# Remove all archives older than this value (in days)# Default: 0 - do not remove old archiveskeep_archives10
Within the same config file, you can setup Google cloud storage as follows:
### Gcloud configuration# Authentication type (service, oauth2)# Default: servicegcloud_typeservice# (M) Bucket to usegcloud_backup_bucketyour_bucket_name# (M) Authorization methods## Service account:# - set gcs_auth_type to SERVICE# - provide path to JSON keyfile in *gcs_keyfile_path## OAuth2:# - set gcs_auth_type to OAUTH2# - specify client email, secret and refresh token #gcloud_key_file/opt/denovo/dnl_backup_tool/conf/tokyo-bird-344444-7c1c6325c412.json#gcloud_key_file /opt/denovo/dnl_backup_tool/conf/ytel-powersips.jsongcloud_emailyour_google_cloud_accountgcloud_secretRkLYIe3k5tfffhJbi96Kutgcloud_token1/7jrRTfff7ZFkTp9u4sA1f0595t7__SmLS7oXP
If you prefer to use FTP for your cold storage, then you can setup the following parameters:
### (S)FTP configuration# (M) Server URLftp_urlyour_ftp_ip_or_host# Server port# Default: 21 - FTP, 22 - SFTPftp_port21# (M) Path to the CDR directory on the serverftp_backup_dir/fto_path/switch1# Use relative paths in QUOT commands instead of absolute# Default: falseftp_use_relative_pathsfalse# (M) Authorization methods## FTP:# - By login/password pair:# set *ftp_user, and *ftp_password if required# leave *netrc_path empty## - Using system settings:# provide path to .netrc file in *netrc_path## - Anonymous:# set *ftp_user to "anonymous" and leave *ftp_pass empty## SFTP:# - By login/password pair:# set *ftp_user and *ftp_pass values## - Using SSH keys:# set *pubkey_path, *privkey_path, and *passphrase if required# leave *ftp_user and *ftp_pass empty#ftp_useryour_ftp_usernameftp_passwordyour_ftp_password
After you make changes to this config file, you must restart the switch to make it effective. Here is the command to restart Class 4 backup tool:
systemctl restart dnl_backup_tool
When setup correctly, you should see CDRs being pushed to your Google Cloud bucket like below: