From owner-freebsd-questions@FreeBSD.ORG Thu May 10 05:59:31 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52AF616A402 for ; Thu, 10 May 2007 05:59:31 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr3.xs4all.nl (smtp-vbr3.xs4all.nl [194.109.24.23]) by mx1.freebsd.org (Postfix) with ESMTP id E1A1313C447 for ; Thu, 10 May 2007 05:59:30 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr3.xs4all.nl (8.13.8/8.13.8) with ESMTP id l4A5xSn6010578; Thu, 10 May 2007 07:59:29 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 82A62B82B; Thu, 10 May 2007 07:59:28 +0200 (CEST) Date: Thu, 10 May 2007 07:59:28 +0200 From: Roland Smith To: L Goodwin Message-ID: <20070510055928.GA38309@slackbox.xs4all.nl> Mail-Followup-To: L Goodwin , freebsd-questions@freebsd.org References: <965182.90754.qm@web58109.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: <965182.90754.qm@web58109.mail.re3.yahoo.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.15 (2007-04-06) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Backing up Samba share to USB jump drive? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2007 05:59:31 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 09, 2007 at 06:10:53PM -0700, L Goodwin wrote: > Here's another round of dumb questions for ya: >=20 > Can USB jump drives be used to back-up a Samba share? > If so, what do I need to do to prepare the USB drive > to accept files?=20 > Since I don't really need to compress or encrypt, I > was thinking about simply copying the entire directory > tree using the cp command, instead of using dump, tar, > cpio. If you don't want to save multiple versions of the same tree (from different dates), you could use rsync. It might be a lot quicker than cp because it skips files that haven't changed since the last backup. But unless your collection of files is almost as large as the USB drive, I would keep saving backups of different dates (with tar & gzip) until you run out of space and have to start deleting older backups. > Will this work, and is it a "good idea"? Certainly. =20 > The filesystem to be backed up is a single common UFS > shared via Samba. All PC users have access to the same > set of files (no user-specific directories). The files > to be backed up are Word, Excel, PDF, etc. >=20 > I don't want to buy the drives until I know if it will > work and how to do it. Do I need to UFS format the > drives? I assume the drive will have to be mounted > like any other drive... Reformatting as UFS seems a good idea. Most drives come with a FAT32 filesystem, which has to use large clusters (16 or 32k) on bigger drives. This can waste a lot of space if you're backing up lots of small files. Have a look at http://en.wikipedia.org/wiki/File_Allocation_Table#FA= T32 Additionally, you'll have to recompile the kernel to support FAT32 filesystems >128GB, IIRC. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGQrTAEnfvsMMhpyURAr9cAKCCK8O0skfwDpFpeuj4y/eeWGNMJACfbPkK B23b4Uows5QDwnZX5buBMrI= =NQzg -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--