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@xxxxxxxxxxxxxxx
[mailto:linux-admin-owner@xxxxxxxxxxxxxxx] On Behalf Of jason
Sent: Thursday, September 15, 2005 11:45 AM
To: Luca Ferrari
Cc: linux-admin@xxxxxxxxxxxxxxx
Subject: Re: tar & samba file systems
--one-file-system and then just specify the mounts that you want to backup.
ala /boot / /home
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html