| PLEX86 | ||
|
How to write a Backup&Restore toolOn Fri, 16 Jun 2006 01:09:10 -0700, Canopus I show one method for making a "snapshot" backup of a known set of files below. The general idea for backing up incrementally: 1. List files within file set being backed up. (save to a file, today's list) 2. Compare files in current set with previous set (today's list vs. yesterday's list). The comparison should generate 4 reports: Config local and remote email Hi, What I'm wanting to do should be simple enough and common, or at least I thought. I've read FAQ's, HOW-TO's, man pages, info pages... report 1: files which are exactly the same report 2: files which have been changed in new list report 3: files which have been deleted from new list report 4: files which have been added to new list 3. Use reports to backup; you want to select files in report two and report four for backup. buttuming you have copied file names from those reports, then you can backup with either zip or tar. 3.a. Zip $ SRC=-mnt-somemnt $ ZF=~-backups-2006-06-14.zip $ SEL=~-backups-2006-06-14.sel 3.b. Tar Frozen login screen in gaim 1.5.0 for unprivileged user Alan Hicks+ No, I found out it was a permissions issue due to running gaim in a tmpfs file system... $ SRC=-mnt-somemnt $ TF=~-backups-2006-06-14.tgz $ SEL=~-backups-2006-06-14.sel 4. Write zip or tar backup to optical media for long term archiving. Before writing zip file to archive, consider combining with other earlier backups to ease restoration problem. Before writing any backup file, consider applying encryption if you are worried about the data being lost or stolen. Final notes: 1. zip files have some advantages over tar files. One big advantage is the ability to move files between archives without recompressing (using special tools). zip files also have a size limit of 2G, which will likely affect your backups. But if you generate less than 2G of new files per day, then perhaps the zip format could work for making daily incremental backups. 2. Use names for your backup files which sort nicely. I prefer names like shown: 2006-05-31.zip 3. The 4 reports necessary in step 2 are generated by a script called comm2.scr. If you are interested in the bash listing, then let me know. I use that script to compare file lists which include the file name, the file size, and the file time (using the time format, seconds since Jan 1, 1970). 4. It is a good idea to design a procedure which is completely scripted (to avoid simple mistakes, etc.) Once your procedure is completely scripted, then it is ready to be scheduled in advance using the "at" command. The final step of writing to another media (optical or external disc) is not totally automatic; therefore, not part of the script. -- Douglas Mayne Parallels Workstation, alternative to Win4Lin I just tried a new Virtual Machine manager, Parallels Workstation. I've been using Win4Lin for many years but Win4Lin9x seems to have reached the end of it's life and Win4LinPro 3 doesn't...
|
||||
Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||