Re: Restricting tar or pax to a single file system
On Sun, 22 Nov 2009 08:01:07 -0800 (PST), jaymax wrote: > I think my reply went to the previous post, but here is > > The syntax here is confusing, should it be > > [ignoring other options] > > tar -c -W one-file-system -f tarfile2Becreated.tar / > > { > From the man pages > -W longopt=value > Long options (preceded by --) are only supported directly on systems that > have the getopt_long(3) function. The -W option can be used to access long > options on systems that do not support this function. > } > > Or is there another synopsis? Yes, there are a few alternative ways to phrase the same thing. For example: cd / tar -cf /backup/tarball.tar --one-file-system . tar -c --one-file-system -f /backup/tarball.tar . You can combine the options of tar in almost *any* order with a bit of care. For example, here's a small part of my incremental backup script: cd /home/keramida/.zfs/snapshot/today env TZ=UTC tar -c --one-file-system --newer-mtime '2009-11-20 00:00:00' \ -f '/backup/home.keramida.2009-11-20.tar' . ___ 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: Restricting tar or pax to a single file system
I think my reply went to the previous post, but here is The syntax here is confusing, should it be > [ignoring other options] tar -c -W one-file-system -f tarfile2Becreated.tar / { >From the man pages -W longopt=value Long options (preceded by --) are only supported directly on systems that have the getopt_long(3) function. The -W option can be used to access long options on systems that do not support this function. } Or is there another synopsis? Thanks! Dan Nelson wrote: > > In the last episode (Nov 21), jaymax said: >> How does one restrict tar or fax to a single file system when tarring or >> paxing from root (/) ? > > For tar: > > --one-file-system (-W one-file-system) > (c, r, and u modes) Do not cross mount points. > > -- > Dan Nelson > dnel...@allantgroup.com > ___ > 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" > > -- View this message in context: http://old.nabble.com/Restricting-tar-or-pax-to-a-single-file-system-tp26463168p26466083.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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: Restricting tar or pax to a single file system
The syntax here is confusing, should it be > [ignoring other options] tar -c -W one-file-system -f tarfile2Becreated.tar / { >From the man pages -W longopt=value Long options (preceded by --) are only supported directly on systems that have the getopt_long(3) function. The -W option can be used to access long options on systems that do not support this function. } Or is there another synopsis? Thanks! jaymax wrote: > > How does one restrict tar or fax to a single file system when tarring or > paxing from root (/) ? > > Thanks! > > > -- View this message in context: http://old.nabble.com/Restricting-tar-or-pax-to-a-single-file-system-tp26463168p26465969.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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: Restricting tar or pax to a single file system
In the last episode (Nov 21), jaymax said: > How does one restrict tar or fax to a single file system when tarring or > paxing from root (/) ? For tar: --one-file-system (-W one-file-system) (c, r, and u modes) Do not cross mount points. -- Dan Nelson dnel...@allantgroup.com ___ 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"