bash script for archiving weekly, monthly and yearly with data retention settings