mwgg / tsar Goto Github PK
View Code? Open in Web Editor NEWKeep the specified number of daily, weekly and monthly archives in Tarsnap, deleting the rest
License: GNU General Public License v3.0
Keep the specified number of daily, weekly and monthly archives in Tarsnap, deleting the rest
License: GNU General Public License v3.0
It seems the current code doesn't do anything beyond daily granularity. As a consequence, each day that has backups retained, retains all of them.
I'd be nice to handle this, perhaps by doing a sort on $LIST and then keeping only the last backup of each day?
From man bash
:
((expression))
The expression is evaluated according to the rules described below under ARITHMETIC
EVALUATION. **If the value of the expression is non-zero, the return status is 0**; other‐
wise the return status is 1. This is exactly equivalent to let "expression".
Combined with set -e
this causes the read loop to exit after the first line.
0f14bfa removed the if
keyword in front of the [ "$VERBOSE" -eq 1 ]
statements. Because this check has a negative return code when $VERBOSE=0
and set -e
is used, the script exits prematurely upon the first use of echo_verbose
.
I forked this repository to fix #7 and #8. I also added some features, like improved logging and configuring the daily, weekly and monthly timings.
You might want to integrate this changes, please refer to https://support.powertools-tech.com/safonso/tsar.
When I ran the tsar command an error was produced:
date: invalid date ‘14/05/16 -60 months’
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.