<commit_before>---
published: true
title: Yarssr deletes the feeds, how to deal with it
layout: post
---
Intermittently, after OS reboot, yarssr seems to lose all the feeds. This can be observed by checking ~/.yarssr/config, it should be zero bytes.
This is highly inconvenient, and I haven't found a permanent fix. What I am doing as a workaround is a daily backup of the config files. 
0 5 * * * tar rvf /home/manu/.yarssr/yarssr-backup.tar /home/manu/.yarssr 2>&1 1>/dev/null

That at least avoids the annoyance of losing everything. I don't think I'll ever have the time to resolve this bug. 
I've experienced this in the past with other solutions, as it is a little bit hard to reproduce and find the root cause.<commit_msg>Post update: Yarssr deletes the feeds, how to deal with it<commit_after>---
published: true
title: Yarssr deletes the feeds, how to deal with it
layout: post
---
Intermittently, after OS reboot, yarssr seems to lose all the feeds. This can be observed by checking ~/.yarssr/config, it should be zero bytes.
This is highly inconvenient, and I haven't found a permanent fix. What I am doing as a workaround is a daily backup of the config files. 
{% highlight shell %}
0 5 * * * tar rvf /home/manu/.yarssr/yarssr-backup.tar -C /home/manu/.yarssr/ . 2>&1 1>/dev/null
{% endhighlight %}

That at least avoids the annoyance of losing everything. I don't think I'll ever have the time to resolve this bug. It is easier to do
{% highlight shell %} 
# tar xvf ~/.yarssr/yarssr-back.tar
{% endhighlight %} 

I've experienced this in the past with other solutions, as it is a little bit hard to reproduce and find the root cause.
{'fraction_non_alphanumeric': 0.07885304659498207, 'fraction_numerical': 0.005973715651135006, 'mean_word_length': 3.478609625668449, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1117318', 'n_tokens_mistral': 535, 'n_tokens_neox': 504, 'n_words': 256}