JSON-based FON (Feature Object Notation) format and tools to simplify genomic annotations usage
A fast and sensitive gapped read aligner
This repository contains chromosome/contig name mappings between UCSC <-> Ensembl <-> Gencode for a variety of genomes.
Fast ring-buffer deque (double-ended queue)
Failing Disk Reporter (FDR): Get a report when a drive (HDD or SDD) is failing via Matrix or Slack
biogo high throughput sequencing repository
This is a mirror for LabxDB. Issues and PRs on GitLab.
This is a mirror for LabxDB Python. Issues and PRs on GitLab.
Let's Encrypt client and ACME library written in Go
A versatile pairwise aligner for genomic and spliced nucleotide sequences
started time in 8 days
created time in 17 days
Hi @3coma3. Thanks for fixing this so fast! Problem I was having is solved.
My review for the patch:
- I understand keeping
7for compatibility but I wouldn't add so many more names (s, sun etc) for the config. I think
- Add a comment to indicate this section of code checks the week number.
comment created time in 20 days
Thanks for writing and maintaining this. I am testing it with success so far, before using it in production. But I have a problem with retention as it seems not to behave as I would except, if I understand the help correctly. In particular, the "week" retention.
For example, these snapshots are tagged/not-tagged using
4 leafs, 3 days, 4 weeks, 12 months and 5 years:
2021/06/26/152400 not tagged 2021/06/26/142400 not tagged 2021/06/24/152400 not tagged 2021/06/24/142400 not tagged 2021/06/23/152400 not tagged 2021/06/22/152400 tagged 2021/06/21/152400 tagged 2021/06/21/142400 tagged 2021/06/20/152400 tagged 2021/06/20/142400 tagged 2021/06/19/152400 tagged 2021/06/19/142400 tagged 2021/06/14/152400 tagged 2021/06/13/152400 tagged 2021/06/12/152400 tagged
I would except (13 and 20 are Sunday):
2021/06/26/152400 not tagged 2021/06/26/142400 not tagged 2021/06/24/152400 not tagged 2021/06/24/142400 not tagged 2021/06/23/152400 not tagged 2021/06/22/152400 tagged 2021/06/21/152400 tagged 2021/06/21/142400 tagged 2021/06/20/152400 not tagged 2021/06/20/142400 tagged 2021/06/19/152400 tagged 2021/06/19/142400 tagged 2021/06/14/152400 tagged 2021/06/13/152400 not tagged 2021/06/12/152400 tagged
To obtain this result, I replaced:
[[ -n "$lw" ]] && (( $(date -d "$lw UTC" +%s) - $(date -d "$y/$m/$d UTC" +%s) / (60 * 60 * 24) > 6 )) \ && (( tag &= retention[weeks]-- < 1 )) lw=$(date -d "$y/$m/$d -$(date -d $y/$m/$d +%u) days +$weekstart day" +'%F')
lw=$(date -d "$y/$m/$d" +'%Y%V') (( $cw != $lw && (cw = lw, tag &= retention[weeks]-- < 1) ))
- I replace your calculation with a variable keeping the current week (
cw) and using
dateto get the current week number
- Replacing +'%Y%V' by +'%Y%U' would use Sunday as first day of the week instead of Monday
- I defined
cw='000000'before the loop
To test my code, I added this code at the end of the
echo """/2021/06/26/152400 /2021/06/26/142400 /2021/06/24/152400 /2021/06/24/142400 /2021/06/23/152400 /2021/06/22/152400 /2021/06/21/152400 /2021/06/21/142400 /2021/06/20/152400 /2021/06/20/142400 /2021/06/19/152400 /2021/06/19/142400 /2021/06/14/152400 /2021/06/13/152400 /2021/06/12/152400""" | sort -dr | tokenize_path | check_retention --all | rotate_test
Does this make sense to you (if yes I can submit a PR)? Am I missing something?
created time in 21 days
commit sha 64ee4ed5fda1a07514fda65a1db75f72eb3fac1c
Sort species list
push time in a month
pull request commentrestic/restic
In my opinion, this is a great idea: number of files for large repositories is really a problem in my case and that solution wouldn't require any config from users. However, I would really like having
smallestPackSize exposed as an option, similarly to what #2750 is proposing.
comment created time in 3 months