chiark / gitweb /
update TODO
[chiark-utils.git] / backup / settings.pl
1 # configuration, for putting in /etc/chiark-backup
2
3 chdir '/var/lib/chiark-backup' or die $!;
4 push(@INC,'/usr/lib/chiark-backup');
5 $ENV{'PATH'} =~ s,^/usr/lib/chiark-backup,,;
6 $ENV{'PATH'}= '/usr/lib/chiark-backup:'.$ENV{'PATH'};
7
8 # This sets both blocksizes to 512b. Note that both must be the
9 # same if using the zftape floppy tape driver, since that requires
10 # blocks to be the right size, but dd with the obs=10k option
11 # doesn't pad the final block to the blocksize...
12
13 $blocksize= 1;
14 $blocksizebytes= 512*$blocksize;
15 $softblocksizekb= 1;
16 $softblocksizebytes= 1024*$softblocksizekb;
17 $tapename= 'st0';
18 $tape= "/dev/$tapename";
19 $ntape= "/dev/n$tapename";
20 1;