Tuesday, March 18, 2008

Using ufsdump for directory backup

you can take incremental backups with ufsdump. here is the usage:

ufsdump 0ucf /pathto/backup/backup_1 /device

what about taking backup of a directory? Of course you can use tar, cpio or cp commands to take backup of a directory. But it might be useful to use ufsrestore command for restoring any corrupted data.

But there is a point, you cannot take incremental backup of directories with ufs dump. this feature is only for devices. so you have to take always zero level backup when you backup a directory.

ufsdump, updates the /etc/dumpdates file to control the backup levels. but it doesn't matter to update this file manual for a directory.

No comments: