We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
Automated Backups with Existing Tools
|
| Subject: |
|
incremental backup without archive bit? |
| Date: |
|
2005-08-07 13:38:52 |
| From: |
|
peterhickman
|
Response to: incremental backup without archive bit?
|
|
Well for each backup archive you could create a catalog of the files that are in the archive along with their size, creation and modification dates and a sha1 checksum. Then when creating an incremental archive you only have to compare the files you are processing to the catalog to decide which files to include.
You do not necessarily need to keep the old archives available but you would need to keep the last full catalog to hand.
Infact there is a tool in OS X called mtree that does just that. It builds a catalog of the filesystem and can be used to compare the catalog against the current filesystem and report any differences such as files added or removed, file sizes or checksums changing. From this report you could then decide which files to add to your incremental archive.
|