[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Handy BRU backup commands


Here are some things I found useful to make backups with BRU personal edition version 15.1 and growisofs.

I used a program called shunt by Paul Serice.

It can be found at http://www.serice.net/shunt/

Backup command:

shunt -c "bru -cAvvv -PE -G -R <directories> -l -f - | gzip" + "exactly bs=32768 count=143444 | growisofs -Z /dev/scd0=/dev/fd/0"

Restore command:

shunt "dd if=/dev/scd0 |  exactly bs=32768 count=143444" + "gunzip | bru -xvvv -PA <files to restore> -f -"

(-PA is absolute path)

The only catch is that all the DVDs you make are essentially one backup media according to bru so to restore one file is somewhat futile if it is on the 10th DVD.

I have not tried setting a 4.2GB brutab device entry and tried to span media with this and shunt.  If you get that to work please let me know how.

I also modified the xbru tcl script for writing to /dev/raw

You would need the DVD+RW kernel patch.

I found that the newer tcl script that can be downloaded with a trial version of bru 16 works for the old bru also.

I had this working with a Philips DVDRW228 firmware v1.51

You will need aligned_io.so by Andy Polyakov from here.

See this site for details http://fy.chalmers.se/~appro/ on aligned_io.so

Here is that change:

CHANGES IN xbru_backup.tcl:
(version 1.23)
LINES 1365,1378
   # build up command
    if {$g_aBRUData(release) >= "16.0"} {
+       if {$sDevice == "/dev/raw/raw1"} {
+               set command "env LD_PRELOAD=/usr/lib/aligned_io.so bru -cABvvvv $sFlags -L \"$g_buLabel\" -l -f $sDevice - <$sTmpFilename |& cat"
+       } else {
                set command "bru -cABvvvvvvvvvv $sFlags -L \"$g_buLabel\" -l -f $sDevice - <$sTmpFilename |& cat"
+       }
    } else {
+       if {$sDevice == "/dev/raw/raw1"} {
+               set command "env LD_PRELOAD=/usr/lib/aligned_io.so bru -cABvvvv $sFlags -L \"$g_buLabel\" -l -f $sDevice - <$sTmpFilename |& cat"
+       } else {
                set command "bru -cABvvvv $sFlags -L \"$g_buLabel\" -l -f $sDevice - <$sTmpFilename |& cat"
+       }

With brutab entry:

/dev/raw/raw1 devname="DVD+RW" \
     size=4590200k bufsize=32k \
     shmseg=10 shmmax=200k \
     seek=0 format=false \
     shmcopy rawfloppy norewind noautoscan \

You can then use /dev/scd0 to restore.

Command line:

env LD_PRELOAD=/usr/lib/aligned_io.so bru -cAvvv -b 32k -PE -G <directories and files> -l -f /dev/raw/raw1

This works with spanning media.


Reply to: