One normally performs a backup using the tar utility. Regular backups run tar from cron. Basically you just archive the content of the /home directory (and any others you want to save).
tar zcvf /dev/dvd /home
to perform an incremental backup, one uses find to locate the files to backup:
i.e. incremental backup every 24 hours:
tar zcvf /dev/dvd `find /home -mtime -1 -type f -print`
You can run this command each 24hours automatically in crontab.
Restore the backup as follows:
tar zxvf /dev/dvd /
(all this assumes /dev/dvd exists and points to your dvd device)
Of course, one could use the -g option to create/list/extract new gnu format incremental backups. More information, see the tar manpage.
Last edited by Simon Bridge; 04-07-2007 at 06:39 AM.
|