for((i=1;i<20;i++));do date -s 2016-09-$i; tar zcvf service_$(date +%F).gz /home/apps ; done;
root@ubuntu:/home/developer# find . -type f -name '*gz' -mtime -7
./service_2016-09-19.gz
./service_2016-09-16.gz
./service_2016-09-18.gz
./service_2016-09-15.gz
./service_2016-09-21.gz
./service_2016-09-17.gz
root@ubuntu:/home/developer# find . -type f -name '*.gz' -mtime -7
./service_2016-09-19.gz
./service_2016-09-16.gz
./service_2016-09-18.gz
./service_2016-09-15.gz
./service_2016-09-21.gz
./service_2016-09-17.gz
root@ubuntu:/home/developer# find . -type f -name '*.gz' -mtime +7 -exec rm -f {} \;