Date: Sun, 27 Dec 2009 22:06:35 +0100 From: Polytropon <freebsd@edvax.de> To: =?UTF-8?Q?=D0=9A=D0=BE=D0=BD=D1=8C=D0=BA=D0=BE=D0=B2_=D0=95=D0=B2?= =?UTF-8?Q?=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9?= <kes-kes@yandex.ru> Cc: freebsd-questions@freebsd.org Subject: Re: Re[2]: How to force tar to be quiet? Message-ID: <20091227220635.fcd005eb.freebsd@edvax.de> In-Reply-To: <1047257846.20091227221031@yandex.ru> References: <1846015154.20091227185106@yandex.ru> <4B37AB6D.3020507@infracaninophile.co.uk> <1047257846.20091227221031@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 27 Dec 2009 22:10:31 +0200, Коньков Евгений <kes-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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091227220635.fcd005eb.freebsd>