find $CURRENT_BACKUP_DIR -name $1_*.gz | tail -n+8 | xargs -n1 rm
to keep the last 7 days backup only.However, it did not work, as
For me, using find $CURRENT_BACKUP_DIR -name $1_*.gz | sort | tail -n+8 | xargs -n1 rm
find $CURRENT_BACKUP_DIR -name $1_*.gz | tail -n+8 | xargs -n1 rm
to keep the last 7 days backup only.However, it did not work, as
For me, using find $CURRENT_BACKUP_DIR -name $1_*.gz | sort | tail -n+8 | xargs -n1 rm
<div id="holder">
<h2>Heading</h2>
<div class="item">This is even</div>
<div class="item">This is odd</div>
</div>
.item:nth-child(even) { background-color:yellow; }result
<script type="text/javascript">
//<![CDATA[
$(function() {
$body = $(document.body);
var colours = ["#007777", "#777700", "#777777", "#770077"];
var currentColour = 0;
var fade = function() {
$body.animate({ backgroundColor: colours[currentColour % colours.length]}, 127000, fade);
currentColour++;
};
fade();
});
//]]>
<script>