Make incremental backups with tar

By | August 9, 2009

Sometime, you modify a small file and you don’t need a full backup. It is recommended to make a full back-up every week and make everyday an incremental back-up.

You can use tar to make incremental back-up. In the next example we will backup all files from /home/adrian that are modified in the last 2 days:

tar -cf backup.tar /home/adrian –newer-mtime ‘2 days ago’

That’s it!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.