<commit_before>Examples
--------

### Running backup.sh

```
dburi=postgres://user:pass@pellefant.db.elephantsql.com:5432/database
backupdir=/tmp/backups; mkdir -p $backupdir
image=cfcommunity/postgresql:9.4
echo "{\"credentials\": {\"uri\": \"${dburi}\"}}" | \
  docker run --add-host=db:$hostip -i \
    -v ${backupdir}:/data:rw \
    --entrypoint /scripts/backup.sh \
    $image someid /data/mybackup/mybackup.tgz
```
<commit_msg>look up server version to use correct docker image version<commit_after>Examples
--------

### Running backup.sh

```
dburi=postgres://user:pass@pellefant.db.elephantsql.com:5432/database
server_version=$(psql $dburi -c "show server_version;" | head -n3 | tail -n1 | awk '{print $1}')
major_version="$(echo $server_version | head -c 3)"

backupdir=/tmp/backups; mkdir -p $backupdir
image=cfcommunity/postgresql:$major_version
echo "{\"credentials\": {\"uri\": \"${dburi}\"}}" | \
  docker run --add-host=db:$hostip -i \
    -v ${backupdir}:/data:rw \
    --entrypoint /scripts/backup.sh \
    $image someid /data/mybackup/mybackup.tgz
```

{'fraction_non_alphanumeric': 0.20149253731343283, 'fraction_numerical': 0.013059701492537313, 'mean_word_length': 3.811659192825112, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2307631', 'n_tokens_mistral': 409, 'n_tokens_neox': 380, 'n_words': 74}