# Help using pt-archiver for archiving DB

**URL:** <https://forums.percona.com/t/help-using-pt-archiver-for-archiving-db/3739>\
**Category:** Percona Toolkit\
**Created:** [September 15, 2014, 6:52am UTC](https://forums.percona.com/t/help-using-pt-archiver-for-archiving-db/3739 "2014-09-15T06:52:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronakshah](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@ronakshah](https://forums.percona.com/u/ronakshah)\
**Post date:** [September 15, 2014, 6:52am UTC](https://forums.percona.com/t/help-using-pt-archiver-for-archiving-db/3739/1 "2014-09-15T06:52:36Z")

</div>

Hi,

We are in the process of archiving our DB since the size of the table is increasing which in turn is slowing down the application. Each table is having around 60-70 lakhs of records and the database is having records for last 4 yrs. After analyzing we have found that the past year records are not accessed frequently so we have decided to keep only 6 months of data on live DB & archive the rest.

Have gone through the pt-archiver documentation & in that it has mentioned option of `before_delete` function by extending the tool to archive all dependent tables. I am completely new to perl & percona toolkit. Would like to explore this option since most of our tables are dependent on single table

Can anyone point me in direction on how to move ahead with this
