implemented shared methods into take-taillogbackups