How to
restore individual files from disk using flexbackup on e-smith e-smith release: 4.1.x |
|
Author:
Des Dougan (ddougan@telus.net)
Release: 0.2, 7 November 2001 Summary Introduction |
|
STEP 1: Visit and implement this HOWTO:
http://www.e-smith.org/docs/howto/contrib/flexbackup-to-disk-howto.htm STEP 2:
Creating the restore script
As root, in root's home directory, create the following script using your favourite editor: [root@e-smith]# vi flexbackup_restore mount
/mnt/backup The "mount" command makes the share available so that you can access the backup archive, while the "cd" command will enable the files to be restored to their original location. It should be omitted if you want to restore to a different directory. "YYYYMMDD" is the date stamp of the backup from which you want to restore and will need to be edited for each use. Creating the restore file list You will now need to create a file containing the names of all the files you wish to restore: [root@e-smith]# vi extract-list /etc/e-smith/templates-custom/etc/cron.d/backup The above example will restore all the files in the named directory. To restore a number of individual files, create a line for each file: /etc/e-smith/templates-custom/etc/smb.conf/10globals Running the restore When you've completed the above two steps, you're ready to go: [root@e-smith]# ./flexbackup_restore As the process runs, you will see output similar to the following: flexbackup version 0.9.8 <flexbackup@home.com> |------------------------------------------------ |
|