- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] How do I relocate /home ?
- From: Matthew Hannigan <mlh@xxxxxxxxxx>
- Date: Sun, 10 Feb 2008 16:35:09 +1100
- User-agent: Mutt/1.5.17 (2007-11-01)
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/
Matt