HamRadioWiki : miniBackup

HomePage :: Categories :: Index :: Recent :: Comments :: Login/Register

Mini Backup and Restore


Mini Backup (mb.py) is a small Python program that makes backups of filetrees on your computer. It is small and simple but has a number of useful features including extension and path part filters to reduce the stuff in the backup. The backup is kept in a filetree where the individual files are stored indexed by their sha-1 hashes, so duplicate files are not repeated in the filestore. The path indexes are kept in a simple text index file. The program can run in a loop every N seconds and so maintain a fairly current backup in near real time. It is particularly useful to back up to a local Compact Flash or USB drive to provide protection against disk crashing or accidental deletion of files.

The simple Documentation and Configuration is in the source file in the first section.

A program to restore the files en-mass (to a new directory) is provided (mr.py). Individual files can also be restored by hand by looking in the index to get the hash, and then getting the file from the hash directories.

-- AlanB

  Attachment Size Date Added
      mr.py   2.25 KB   10/25/2006 6:03 pm
      mb.py   3.72 KB   10/25/2006 6:05 pm
 

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1643 seconds