Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Mar 2005 16:10:59 -0500 (EST)
From:      "Ean Kingston" <ean@hedron.org>
To:        "Sebastian" <list@mindling.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Moving a directory hierarchy - best practice?
Message-ID:  <2971.216.220.59.169.1109970659.squirrel@216.220.59.169>
In-Reply-To: <19734.64.142.107.68.1109969251.squirrel@webmail.sonic.net>
References:  <200503042035.j24KZCMv023724@mail-core.space2u.com> <19734.64.142.107.68.1109969251.squirrel@webmail.sonic.net>

next in thread | previous in thread | raw e-mail | index | archive | help

>> I have spent 20 minutes or so googling around to find the best way to
>> _move_ a complete directory hierarchy. But must admitt that I haven't
>> foundmany good answers.
>>
>> The best suggestion was from
>> http://badgertronics.com/knowledge/one.adp?parent=25:
>>
>> To move /tmp/blarg to /var:
>> % cd /tmp
>> % tar cvf - blarg | (cd /var; tar xf -)
>>
>>
>> I bet there must be atleast one utils like a binary named "mvdir" or
>> similar that simply taked two directory names as argument. But I can't
>> find any.
>>
>> How do you guys move around your directory structures from prompt?
>>
>> //J
>
> I use:
>
> Quick and dirty:
> $ mv /tmp/blarg /var/blarg
>
> If it's really important stuff:
> $ rsync -a /tmp/blarg /var/
> $ rm -rf /tmp/blarg
>
> I'm interested to hear others' methods.

someone else posted the cpio method so I'll skip that.

I've been know to use dump and restore when the data was especially
fragile but usually go with the mv command.

-- 
Ean Kingston
    E-Mail: ean_AT_hedron_DOT_org
 PGP KeyID: 1024D/CBC5D6BB
       URL: http://www.hedron.org/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2971.216.220.59.169.1109970659.squirrel>