Amanda-Users

Re: SMB backups of windows boxes

2003-04-11 04:10:13
Subject: Re: SMB backups of windows boxes
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Tom Brown <tom.brown AT goodtechnology DOT com>
Date: Fri, 11 Apr 2003 08:33:18 +0200
Tom Brown wrote:
Just tried again with a different file and encountered the dreaded filesize
limit...

dd if=/dev/nst0 bs=32k of=/scratch/restore/xxxx_restore
dd: /scratch/restore/xxxx_restore: File too large
65536+0 records in
65535+0 records out
[operator@xxxx restore]$

any thoughts about getting around this one?

You didn't specify which OS you are using, but many modern "split"
commands can split on bytesize counts (older ones can only split on number of lines). Try this:

  dd if=dev=nst0 bs=32k | split -b 1024m - xxxx_restore.

This create files named xxxx_restore.aa xxxx_restore.ab xxxx_restore.ac etc, 1 Gbyte in size. Use "cat xxxx_restore.* | ..." to feed the total
file into your restore/gnutar program.  (Maybe you have to cut off the
first 32k of the first file first, as it contains the Amanda file
header.)

--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************