From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Adam T. Bowen" Subject: Re: tar & samba file systems Date: Fri, 16 Sep 2005 09:35:50 +0100 Message-ID: <432A83E6.1070609@agitate.org.uk> References: <0481A62A3E95A044AC20A1A45899645C06B02EF4@glc-mail-1.tessco.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <0481A62A3E95A044AC20A1A45899645C06B02EF4@glc-mail-1.tessco.com> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-admin@vger.kernel.org Hi, I have had similar behaviour from tar before when using -l (aka --one-file-system). It was because I was doing something like: tar -lcvf local_files.tar * in /. The * of course is expanded to all the filenames in the directory causing the command to look like: tar -lcvf local_files.tar etc bin boot home ... So even though, say, home is mounted on another partition to /, I am stating the name of home on the command line and so it is included. Any other non-local file systems encountered whilst traversing the directories given will not be followed of course. Anyway, the solution is to do: tar -lcvf local_files.tar . or just name the directories you want. Hope that helps. Adam Callahan, Tom wrote: > Or you can use --exclude to specify directories/files not to be backed > up.... > > Tom Callahan > > -----Original Message----- > From: linux-admin-owner@vger.kernel.org > [mailto:linux-admin-owner@vger.kernel.org] On Behalf Of jason > Sent: Thursday, September 15, 2005 11:45 AM > To: Luca Ferrari > Cc: linux-admin@vger.kernel.org > Subject: Re: tar & samba file systems > > --one-file-system and then just specify the mounts that you want to backup. > ala /boot / /home >