<commit_before># WeeWX Backup

This repo contains the scripts that I use to backup my WeeWX weather station database and archive to AWS S3.

See [http://www.weewx.com/](http://www.weewx.com/) for more info about the weather station software.

The backup script will first stop the weewx service, dump the sqlite3 database, start the weewx service up again and call the s3 archive script.

The s3 archive script will:
1. **Every day**: push a copy of the backup file to the "daily" directory and remove entries more than 1 week old
1. **Every Sunday**: push a copy of the backup file to the "weekly" directory and remove entries more than 1 month old
1. **On the 1st of every month**: push a copy of the backup file to the "monthly" directory and remove entries more than 1 year old
1. **On the 1st of January every year**: push a copy of the backup file to the "annual" directory.  No entries will be removed from the annual directory


<commit_msg>markdown issue with list items<commit_after># WeeWX Backup

This repo contains the scripts that I use to backup my WeeWX weather station database and archive to AWS S3.

See [http://www.weewx.com/](http://www.weewx.com/) for more info about the weather station software.

The backup script will first stop the weewx service, dump the sqlite3 database, start the weewx service up again and call the s3 archive script.

The s3 archive script will:
1. **Every day**: push a copy of the backup file to the "daily" directory and remove entries more than 1 week old  
1. **Every Sunday**: push a copy of the backup file to the "weekly" directory and remove entries more than 1 month old  
1. **On the 1st of every month**: push a copy of the backup file to the "monthly" directory and remove entries more than 1 year old  
1. **On the 1st of January every year**: push a copy of the backup file to the "annual" directory.  No entries will be removed from the annual directory  



{'fraction_non_alphanumeric': 0.061362454498179925, 'fraction_numerical': 0.013520540821632865, 'mean_word_length': 3.9974025974025973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6016755', 'n_tokens_mistral': 530, 'n_tokens_neox': 509, 'n_words': 326}