From owner-freebsd-questions@FreeBSD.ORG Wed May 28 06:54:00 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 46D411065674 for ; Wed, 28 May 2008 06:54:00 +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 DF2348FC19 for ; Wed, 28 May 2008 06:53:59 +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 E9792C9423; Wed, 28 May 2008 08:53:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lc-words.com; s=mainlcwords; t=1211957638; bh=QeycntntoCyW2Fu/EW6q0Z0I7tC/ZVCHnuK 29MII0qc=; h=Message-ID:Date:From:Reply-To:MIME-Version:To:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=E 9coM39kc42nUWTYS7S/D6G69oWI2AMBMIkIofA6kyNdUh61NFd2ZQCCuUdHMPzEwDJP OLmxoHCtZh/V43b7bctrUwo6cFEGldjlA87aVqQiJCgc2zKP3hU9gfdxdd80ENIVG5o bAGdfozNZkhAtqkNya5cpTdKBrJyiGTavYKY= 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 77352-09; Wed, 28 May 2008 08:53:57 +0200 (CEST) Received: from [127.0.0.1] (cxw210.internetdsl.tpnet.pl [83.19.156.210]) (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 6EA27C941E; Wed, 28 May 2008 08:53:57 +0200 (CEST) Message-ID: <483D0181.5010605@lc-words.com> Date: Wed, 28 May 2008 08:53:53 +0200 From: Zbigniew Szalbot User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Eric Zimmerman , freebsd-questions@freebsd.org References: <483C8060.2070003@lc-words.com> <483C87F0.9030803@mikestammer.com> In-Reply-To: <483C87F0.9030803@mikestammer.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard Cc: Subject: Re: 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: Wed, 28 May 2008 06:54:00 -0000 Hi there, >> 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! > > I have been very happy with rsnapshot. Take that for a spin and see how > it works for you I have taken a look at rsnapshot but it seems I am left to deal with the same problem: From their page: In addition to full paths on the local filesystem, you can also backup remote systems using rsync over ssh. If you have ssh installed and enabled (via the cmd_ssh parameter), you can specify a path like: backup root@example.com:/etc/ example.com/ This behaves fundamentally the same way, but you must take a few extra things into account. a/ The ssh daemon must be running on example.com b/ You must have access to the account you specify the remote machine, in this case the root user on example.com. I do not allow remote root login so what are my options in that case? How do you deal with such a scenario? Many thanks! -- Zbigniew Szalbot www.lc-words.com