From owner-freebsd-questions@FreeBSD.ORG Tue May 27 21:43:03 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98CA31065678 for ; Tue, 27 May 2008 21:43:03 +0000 (UTC) (envelope-from z.szalbot@lc-words.com) Received: from relay.lc-words.com (relay.lc-words.com [62.121.130.110]) by mx1.freebsd.org (Postfix) with ESMTP id 4B5D78FC19 for ; Tue, 27 May 2008 21:43:03 +0000 (UTC) (envelope-from z.szalbot@lc-words.com) Received: from localhost (localhost [127.0.0.1]) by relay.lc-words.com (Postfix) with ESMTP id 65927C9424 for ; Tue, 27 May 2008 23:43:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lc-words.com; s=mainlcwords; t=1211924581; bh=n4rqA6+kSxh23NsbKabi6h1rEA15jIwk3Th y31Thcak=; h=Message-ID:Date:From:Reply-To:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=DK3CrblN8Ufdutk+y+sDVPac rnYpEf+Qp5T8xDlz3bjjl7CI+WM84kr8wkl3I/wgLvRHyURmqfj33rf80yXC0azUKgr 4yxsk9urvakmXB6Wv5YgiV8tBNmjxXuCfHUtSeQrXvM6D4lBt9it49v/CFbvLoF392P h1Og/uDUZ3IHw= Received: from relay.lc-words.com ([127.0.0.1]) by localhost (relay.lc-words.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 79185-10 for ; Tue, 27 May 2008 23:43:01 +0200 (CEST) Received: from [127.0.0.1] (77-254-167-21.adsl.inetia.pl [77.254.167.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: z.szalbot@lc-words.com) by relay.lc-words.com (Postfix) with ESMTPSA id F3E88C941E for ; Tue, 27 May 2008 23:43:00 +0200 (CEST) Message-ID: <483C8060.2070003@lc-words.com> Date: Tue, 27 May 2008 23:42:56 +0200 From: Zbigniew Szalbot User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard Subject: dump and remote file fetching X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: z.szalbot@lc-words.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2008 21:43:03 -0000 Hello, Need a word of advice. I use dump to backup my data. All fine. Dump saves compressed *.bz2 files. Nice. All I need now is a way to copy them from the server to a remote backup machine. The problem I am facing is that bz2 files are owned by root:wheel. So if I use scp user@domain.tld:/path/to/*.bz2, it does not have sufficient permissions to fetch the files. I can use sudo, but then I need to interactively type the password, which I would like to avoid. Can you suggest simple ways of getting around this? I don't mind using special tools for the job, especially if they are not too complicated... :) Before firing this email off I took a look at rsync and it seems easy enough to do just what I need but still many thanks for suggestions! -- Zbigniew Szalbot www.lc-words.com