- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] How do I relocate /home ?
- From: Jamie Wilkinson <jaq@xxxxxxxxxxxxxx>
- Date: Sun, 10 Feb 2008 21:54:11 +1100
- User-agent: Mutt/1.5.17+20080114 (2008-01-14)
This one time, at band camp, Matthew Hannigan wrote:
>On Sat, Feb 09, 2008 at 09:57:30PM +1100, Alex Samad wrote:
>>
>> rysnc -av /home.orig/* /home/
>
>Using a * here will skip dotfiles in /home.orig.
>There's probably none there but you never know.
>Secondarily, anytime you use * you make it possible
>to exceed to command line length.
>
>It's sufficient to use a trailing / to get
>everything in /home.orig.
>
>So just
> rsync -av /home.orig/ /home/
>is good
>
>
>Note for rsync newbs;
> rsync -av /home.orig /home/
>is different from
> rsync -av /home.orig/ /home/
>The first will do what you want, the
>second will create /home/home.orig/
The other way around; ending with a trailing slash on both directories, as
you said the first time, will always make the second directory mirror the
first.