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