On Sun, 27 Dec 2009 22:10:31 +0200, Коньков Евгений <kes-...@yandex.ru> wrote: > # tar -cf /home/kes/backup/conf/aaa_etc.tar -C / boot/loader.conf etc/* > usr/local/etc/* usr/local/virtwww/* > tar: No match. > > And next does not work as expected: > # tar -cf /home/kes/backup/conf/aaa_etc.tar -C / boot/loader.conf etc > usr/local/etc usr/local/virtwww > > I get: > boot > etc > mysite > local > sub > usr > virtwww > > Why local, sub, mysite, virtwww are in ROOT or tar??? > 'local' must be under 'usr' > 'virtwww' must be under 'local' > 'mysite' must be under 'virtwww' > but not in root > > Why I get that wrong result?
When * is specified on the command line, the shell will expand it. This causes the subtrees / subdirs (or their 1st level content) of /usr/local to be the subject of the archiving operation. Which shell are you using? Is it maybe not expanding * and instead taking it literally? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... _______________________________________________ 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"