Re: tar & samba file systems

Re: tar & samba file systems

am 15.09.2005 17:45:04 von Jason Clark

--one-file-system and then just specify the mounts that you want to backup. ala /boot / /home

--
Jason
The place where you made your stand never mattered,
only that you were there... and still on your feet

On Thu, 15 Sep 2005, Luca Ferrari wrote:

> Hi,
> I've got a few samba shares mounted on a directory tree that I backup with
> tar. I'd like my backups does not include the samba shares, that is backups
> include files of the local file system only, but even with the -l option tar
> is exploring the samba shares, increasing backup time. Any suggestion?
>
> Thanks,
> Luca
>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

tar & samba file systems

am 15.09.2005 18:03:44 von Luca Ferrari

Hi,
I've got a few samba shares mounted on a directory tree that I backup
with tar. I'd like my backups does not include the samba shares, that is
backups include files of the local file system only, but even with the
-l option tar is exploring the samba shares, increasing backup time. Any
suggestion?

Thanks,
Luca
--
Luca Ferrari
fluca1978@infinito.it
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: tar & samba file systems

am 15.09.2005 18:18:46 von Tom Callahan

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

--
Jason
The place where you made your stand never mattered,
only that you were there... and still on your feet

On Thu, 15 Sep 2005, Luca Ferrari wrote:

> Hi,
> I've got a few samba shares mounted on a directory tree that I backup with

> tar. I'd like my backups does not include the samba shares, that is
backups
> include files of the local file system only, but even with the -l option
tar
> is exploring the samba shares, increasing backup time. Any suggestion?
>
> Thanks,
> Luca
>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: tar & samba file systems

am 16.09.2005 10:35:50 von adamb

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
>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html