# Shell Script for Incremental with Rotation?

**URL:** <https://forums.percona.com/t/shell-script-for-incremental-with-rotation/5263>\
**Category:** Percona XtraBackup\
**Created:** [December 6, 2016, 12:57pm UTC](https://forums.percona.com/t/shell-script-for-incremental-with-rotation/5263 "2016-12-06T12:57:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![consultant1027](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@consultant1027](https://forums.percona.com/u/consultant1027)\
**Post date:** [December 6, 2016, 12:57pm UTC](https://forums.percona.com/t/shell-script-for-incremental-with-rotation/5263/1 "2016-12-06T12:57:40Z")

</div>

Can anyone point me to a shell script example that could be used in conjunction with cron that would allow me to do hourly incremental backups of all tables and rotate at 24 (so I have a full day of hourly incremental backups.). Thanks!
