Vista Recipe

Before reading any further, don't expect to be able to restore a crashed Windows harddisk with Dirvish. It is simply not going to work because some NTFS features cannot be extracted or copied onto a Linux filesystem.

Dirvish however is an excelent tool to backup your data files in case they got lost or corrupted, and keep copies of old versions of files.

My current setup at time of writing

The really cool thing about this setup is that you do not have to be logged on at backup time. The Vista client just needs to be booted into the login screen.

Dirvish server

Network

Windows client

Installation

On the Windows computer

 $ mount                  
 D:/ProgramsVista/ICW/etc/terminfo on /usr/share/terminfo type ntfs (binary,noacl)
 D:/ProgramsVista/ICW/bin on /usr/bin type ntfs (binary,noacl)
 D:/ProgramsVista/ICW/lib on /usr/lib type ntfs (binary,auto)
 D:/ProgramsVista/ICW on / type ntfs (binary,noacl)
 C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
 D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)
 E: on /cygdrive/e type iso9660 (binary,posix=0,user,noumount,auto)

 cp /etc/fstab /etc/fstab.install
 echo "none /cygdrive cygdrive binary,posix=0,user,noacl 0 0" >> /etc/fstab

 logout
 ssh Adminstrator@hostname

 $ mount
 D:/ProgramsVista/ICW/etc/terminfo on /usr/share/terminfo type ntfs (binary,noacl)
 D:/ProgramsVista/ICW/bin on /usr/bin type ntfs (binary,noacl)
 D:/ProgramsVista/ICW/lib on /usr/lib type ntfs (binary,auto)
 D:/ProgramsVista/ICW on / type ntfs (binary,noacl)
 C: on /cygdrive/c type ntfs (binary,noacl,posix=0,user,noumount,auto)
 D: on /cygdrive/d type ntfs (binary,noacl,posix=0,user,noumount,auto)
 E: on /cygdrive/e type iso9660 (binary,noacl,posix=0,user,noumount,auto)

On the dirvish server

 client: Administrator@hostname

 tree: /cygdrive/c/

 exclude:
        $RECYCLE.BIN

 time /usr/sbin/dirvish --vault laptop-C --init

to make the initial backup

rsync: send_files failed to open "/cygdrive/c/hiberfil.sys": Device or resource busy (16)
rsync: send_files failed to open "/cygdrive/c/pagefile.sys": Device or resource busy (16)

 client: Administrator@hostname

 tree: /cygdrive/c/

 exclude:
        /$RECYCLE.BIN
        /hiberfil.sys
        /pagefile.sys

 bank:
        /backup/laptop

 Runall:
        laptop-C
        laptop-D

The resulting backupset sizes for yesterday's and today's sets:

 du -sh */*/tree
 24G     laptop-C/20100205/tree
 585M    laptop-C/20100206/tree
 45G     laptop-D/20100205/tree
 2.6G    laptop-D/20100206/tree

After a few successful snapshots, you should examine the log files created for each snapshot and look for any files that are being backed up, but are rather useless to keep. Usually there are a lot of temp-files or cache files that do not need backing up.

Readable registry backup

With current releases of the software, it is easily possible to backup your windows registry! It makes changes to the registry searchable between backup sets, with your favorite Linux tools.

Just create an extra vault for your registry, and use the following default.conf:

 client: Administrator@hostname

 tree: /proc

 exclude:
        + /registry
        - /*

Notice that the --init registy snapshot can have a multi-GB size, mainly because filesystem (blocksize) overhead!!

So on a 32bit Windows Vista it is sufficient to backup /proc/registry. On 64bit Windows Vista you want to backup both registry32 and registry64

default.conf:
 client: Administrator@hostname

 tree: /proc

 exclude:
        + /registry32
        + /registry64
        - /*

Notes

VistaRecipe (last edited 2011-01-24 07:39:32 by KeithLofstrom)