2003-06-07 17:20:31 UTC
Actually, dvbackup is just a tool to encode a data stream into a dv stream. Take a look at Peters examples:
find . |cpio -o -H crc |dvbackup --prefix=125 |dvconnect -s"
He uses the program 'find' to make a list of the files to be stored. This list is passed on to the program 'cpio' which concatenates these files together (with some bookkeeping data) into a data stream. This again is passed to 'dvbackup' to encode it into a dv stream which is passed to 'dvconnect' to send it to the camera.
The restore works just the reverse way:
dvconnect |dvbackup -d|cpio -imV
You call 'dvconnect' to receive the dv stream from the camera and pass it to 'dvbackup'. The encoded data stream is recovered and passed on to 'cpio'. This program scans the bookkeeping data and writes the individual files back to the disc.
So in order to customize your backup, you have to tell 'find' and 'cpio' what to do exactly. Read the man- or info-pages to learn the details.
To answer your questions:
> Can i choose certain sub dir to back up-- not all of them?
Just replace 'find .' by 'find subdir1 subdir2' to store just these subdirs (of the current directory! If you want to do pattern matching deep in the directory tree, look at the -path option of 'find').
> can i restore just a few files instead of all?
Just append the filename pattern(s) to 'cpio -imV'.
> can i restore to a different location?
If you created the backup as in the examples above, cpio stores only relative paths. This means that you are *always* restoring relative to the current directory. So if you want to restore to another directory, go there and then invoke the restore commandline.
Hope that helps.