<commit_before><commit_msg>adding flirt db backup script<commit_after>#!/bin/bash
#Note: This script is intended for jenkins.

export remote_command="ssh <EMAIL>"

export DATE=$(date +%Y%m%d)
$remote_command "sudo docker exec -t mongodb mongodump --db flirt --out /var/log/dump" &&\
$remote_command "sudo tar -czf /var/log/flirt_$DATE.tar.gz /var/log/dump" &&\
$remote_command "aws s3 cp /var/log/flirt_$DATE.tar.gz s3://eha-flirt/backups"

{'fraction_non_alphanumeric': 0.1590909090909091, 'fraction_numerical': 0.004545454545454545, 'mean_word_length': 4.7272727272727275, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3713145', 'n_tokens_mistral': 175, 'n_tokens_neox': 166, 'n_words': 41}