Date: Mon, 16 May 2005 12:03:45 -0700 From: Kris Kennaway <kris@obsecurity.org> To: Viren Patel <virenp@mail.utexas.edu> Cc: Kris Kennaway <kris@obsecurity.org> Subject: Re: Transferring dump file to tape? Message-ID: <20050516190345.GA52793@xor.obsecurity.org> In-Reply-To: <36710.146.6.178.5.1116269538.squirrel@mail.cm.utexas.edu> References: <55383.146.6.178.5.1116261378.squirrel@mail.cm.utexas.edu> <20050516183828.GB50140@xor.obsecurity.org> <36710.146.6.178.5.1116269538.squirrel@mail.cm.utexas.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 16, 2005 at 01:52:18PM -0500, Viren Patel wrote: > > On Mon, May 16, 2005 at 11:36:18AM -0500, Viren Patel > > wrote: > >> Hello. I am using 'dump' to backup client filesystems to > >> a > >> disk file on an NFS mounted partition, e.g. > >> > >> dump -0aLu -f /bk/var-20050516 /var > >> > >> Now I'd like to take the backup file (var-200500516) and > >> move it to tape (on the NFS server). However I'd like > >> the > >> tape to have the data just as if it had been created > >> directly by 'dump', e.g. > >> > >> dump -0aLu -f /dev/nsa0 /var > >> > >> Any way to do this? I could use rdump/rmt to backup > >> directly to the remote tape, but I am doing it this way > >> to > >> do fast disk-based backups during night and move to > >> slower > >> tapes during day. For normal restores I can use > >> NFS-based > >> files but have tapes for single-user-mode type restores. > >> Thanks. > > > > You can use dd to write a file to a device (e.g. tape). > > > > Kris > > >=20 > I thought so too, but it doesn't work. When I issue >=20 > dd if=3Dvar-20050516 of=3D/dev/nsa0 >=20 > I get the following error: >=20 > dd: /dev/nsa0: Invalid argument > 1+0 records in > 0+0 records out > 0 bytes transferred in 0.000786 secs (0 bytes/sec) >=20 > Since 'dump' works with /dev/nsa0 I am not sure what the > problem is. You need to specify a block size compatible with your tape drive, e.g. 32k. Kris --liOOAslEiF7prFVr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCiO6RWry0BWjoQKURAnNbAKDSVBbkbBoXq+iQB9jtoQxMrLgDDwCg/gpw iprAPH6qAl0l4JqPKdJ4VKY= =jlEr -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050516190345.GA52793>