Monthly Archive for October, 2006

Remove (obliterate) trees from subversion repository

If you need to wipe all traces for some objects in your svn repository, you can do something like this:

# svnadmin dump REPOS_PATH | svndumpfilter \
<include|exclude> $string | \
svnadmin load REPOS_PATH_NEW
# mv REPOS_PATH REPOS_PATH_backup && REPOS_PATH_NEW \
REPOS_PATH

Backup and restore a Windows partition

Today I discovered ‘ntfsclone’ which is included in debian in the ‘ntfsprogs’ package.

For example if you wonna try to backup your ‘/dev/hda3′ to a remote host:

foobar:~ # ntfsclone –save-image –output - /edv/hda3 | \
ssh $remotehost ‘( cat > xp.img )’

remotehost:~ # cat xp.img | ssh $foobar \
‘(ntfsclone –restore-image –overwrite /dev/hda3 - )’

Maybe you you also will have a look into ‘ntfsresize’! ;-)