From owner-freebsd-questions@FreeBSD.ORG Fri Jun 6 19:36:52 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 877581065672 for ; Fri, 6 Jun 2008 19:36:52 +0000 (UTC) (envelope-from jeff@m2.seamanpaper.com) Received: from buster.seamanpaper.com (buster.seamanpaper.com [67.158.116.43]) by mx1.freebsd.org (Postfix) with ESMTP id 30DB98FC24 for ; Fri, 6 Jun 2008 19:36:52 +0000 (UTC) (envelope-from jeff@m2.seamanpaper.com) Received: (qmail 60427 invoked from network); 6 Jun 2008 15:36:51 -0400 Received: from unknown (HELO junco.intranet.seamanpaper.com) (192.168.10.133) by buster.seamanpaper.com with SMTP; 6 Jun 2008 15:36:51 -0400 Received: (qmail 37251 invoked by uid 0); 6 Jun 2008 19:37:47 -0000 Received: from unknown (HELO ?192.168.10.118?) (192.168.10.118) by 192.168.10.133 with SMTP; 6 Jun 2008 19:37:47 -0000 Message-ID: <484991B1.3050400@m2.seamanpaper.com> Date: Fri, 06 Jun 2008 15:36:17 -0400 From: Jeff Dickens User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: z.szalbot@lc-words.com References: <483C8060.2070003@lc-words.com> In-Reply-To: <483C8060.2070003@lc-words.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: dump and remote file fetching X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jeff@seamanpaper.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2008 19:36:52 -0000 Zbigniew Szalbot wrote: > 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. > Add user "user" to a group "xyz". Arrange for dump files to get group "xyz" and permissions g+w. You can probably do this by changing the group of the directory the dumps are written into and setting the sticky bit. > 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! > >