Re: bsdtar --gname switch

2011-10-16 Thread Adam Vande More
On Sun, Oct 16, 2011 at 3:55 PM, Romain Garbage romain.garb...@gmail.comwrote:

 According to bsdtar(1) manpage, tar has a --gname switch that permits
 to set an arbitrary groupname in the tar archive, but:
 $ tar -cf test.tar --gname root test.sh
 tar: Option --gname is not supported
 Usage:
  List:tar -tf archive-filename
  Extract: tar -xf archive-filename
  Create:  tar -cf archive-filename [filenames...]
  Help:tar --help

 I get the same error for --uname and --gid switches. I'm running
 9.0-BETA3 (r226421). Did those switches used to work in previous
 releases of FreeBSD ?


No they didn't.  I suggest filing a PR and contacting the CURRENT list.

-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bsdtar

2009-03-12 Thread alexus
or maybe someone knows which flag i need to use to use rsync?

On Thu, Mar 12, 2009 at 10:00 PM, alexus ale...@gmail.com wrote:
 can bsd tar save file flags (chflags) ? if not what can?

 --
 http://alexus.org/




-- 
http://alexus.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bsdtar

2009-03-12 Thread Roland Smith
On Thu, Mar 12, 2009 at 10:05:19PM -0400, alexus wrote:
 or maybe someone knows which flag i need to use to use rsync?

You can use the --fileflags option, if rsync has been compiled with
it. See /usr/ports/net/rsync/Makefile

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpQPxL0AummY.pgp
Description: PGP signature


Re: bsdtar

2009-03-12 Thread alexus
yeah, i just found patch for it, thanks!

On Thu, Mar 12, 2009 at 11:57 PM, Roland Smith rsm...@xs4all.nl wrote:
 On Thu, Mar 12, 2009 at 10:05:19PM -0400, alexus wrote:
 or maybe someone knows which flag i need to use to use rsync?

 You can use the --fileflags option, if rsync has been compiled with
 it. See /usr/ports/net/rsync/Makefile

 Roland
 --
 R.F.Smith                                   http://www.xs4all.nl/~rsmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)




-- 
http://alexus.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bsdtar '--exclude pattern' problems

2004-11-30 Thread Lowell Gilbert
Karol Kwiatkowski [EMAIL PROTECTED] writes:

 Hello all,
 
 I upgraded 5.2.1 to 5.3 recently and I'm trying to run my cron scripts
 which use tar utility (which defaults to bsdtar(1) on 5.3) and I can't
 figure out how to use '--exclude pattern' with it. It seems I'm
 missing something obvious here or bsdtar(1) is happily ignoring
 --exclude option.
 
 my system:
 FreeBSD 5.3-RELEASE-p1 #4: Sat Nov 27 19:37:42 CET 2004
 
 here's what I try to run:
 
 orchid# /usr/bin/tar -czvf /home/root.backup/test.tar.gz -C /home . \
  --exclude root.backup/* --exclude pub/* --exclude ncvs/*
 
 I tried '-W exclude=pattern', too:
 
 orchid# /usr/bin/tar -czvf /home/root.backup/test.tar.gz -C /home . \
   -W exclude=root.backup/* -W exclude=pub/* -W exclude=ncvs/*
 
 Both commands include all directories under /home. However using
 /usr/bin/gtar works as expected.

According to the tar(1) manual, the file parameters are supposed to
come after all of the option parameters.  So instead of 

 orchid# /usr/bin/tar -czvf /home/root.backup/test.tar.gz -C /home . \
  --exclude root.backup/* --exclude pub/* --exclude ncvs/*

I think you should have

 orchid# /usr/bin/tar -czvf /home/root.backup/test.tar.gz -C /home \
  --exclude root.backup/* --exclude pub/* --exclude ncvs/* .

which seems to do what you're expecting.

I don't have access to a copy of the POSIX spec, but I seem to recall
that it generally expects the options first.  So that may be where the
behaviour originates.

Be well.
-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bsdtar '--exclude pattern' problems

2004-11-30 Thread Karol Kwiatkowski
Lowell Gilbert wrote:
 According to the tar(1) manual, the file parameters are supposed to
 come after all of the option parameters.

Ah, of course! I don't know why I wrote it wrong (some months ago
probably). Thank you.

 Be well.

Cheers,

Karol

-- 
Karol Kwiatkowski  freebsd at orchid dot homeunix dot org
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bsdtar '--exclude pattern' problems

2004-11-30 Thread Mike Jeays
On Tue, 2004-11-30 at 08:31, Karol Kwiatkowski wrote:
 Hello all,
 
 I upgraded 5.2.1 to 5.3 recently and I'm trying to run my cron scripts
 which use tar utility (which defaults to bsdtar(1) on 5.3) and I can't
 figure out how to use '--exclude pattern' with it. It seems I'm
 missing something obvious here or bsdtar(1) is happily ignoring
 --exclude option.
 
 my system:
 FreeBSD 5.3-RELEASE-p1 #4: Sat Nov 27 19:37:42 CET 2004
 
 here's what I try to run:
 
 orchid# /usr/bin/tar -czvf /home/root.backup/test.tar.gz -C /home . \
  --exclude root.backup/* --exclude pub/* --exclude ncvs/*
 
 I tried '-W exclude=pattern', too:
 
 orchid# /usr/bin/tar -czvf /home/root.backup/test.tar.gz -C /home . \
   -W exclude=root.backup/* -W exclude=pub/* -W exclude=ncvs/*
 
 Both commands include all directories under /home. However using
 /usr/bin/gtar works as expected.
 
 Any help appreciated. Thanks.
 
 Karol

Here is an example that works for me:

tar -czf /usr/tmp/HOME.tar.gz  \
--exclude home/mike/tmp/*  \
--exclude home/mike/tmp?/* \
--exclude home/mike/moz/cache/*\
--exclude home/mike/sylmail\
--exclude home/mike/z/*\
/home/mike/*

You need to leave off the leading /, as it has already been stripped
from the filename before the comparison.  Took me some time to work this
out!


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bsdtar '--exclude pattern' problems

2004-11-30 Thread Tim Kientzle
Karol Kwiatkowski wrote:
Lowell Gilbert wrote:
According to the tar(1) manual, the file parameters are supposed to
come after all of the option parameters.
Ah, of course! I don't know why I wrote it wrong (some months ago
probably). Thank you.
gtar and bsdtar do parse options a little
differently, so a few people may need to
adjust their scripts.
Rationale: gtar requires the GNU
getopt library and exploits a few special
features of that library. bsdtar is designed
to work with several different getopt
libraries, so restricts itself to
somewhat more generic behavior.
Tim Kientzle
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]