[NZLUG] Copying Home Directory to a new partition.

Bruce Kingsbury zcat at zcat.geek.nz
Tue Apr 8 14:22:59 NZST 2014


I use cp -a /home/user/. /newhome/user/

.. or cp -a /home/user /newhome



On 8 April 2014 07:53, Steve Holdoway <steve at greengecko.co.nz> wrote:
> That's because it's been recreated...
>
>
> On 07/04/14 22:47, Cliffp wrote:
>>
>>
>> Hmm, the dot files *do* seem to have been copied. I have a .dropbox in the
>> new folder and it contains stuff.
>>
>> Cheers,
>>
>> Cliff
>>
>> On 07/04/14 21:47, Matthew Poole wrote:
>>>
>>> cp somedirectory/* will not get the dot files that you need for
>>> configuration, IME. Dropbox is stored in a dot directory, too, and I
>>> suspect you'd find a heap of other application configs are also
>>> missing. I've found it necessary to either go back and cp
>>> somedirectory/ or cp .[a-Z]*
>>>
>>> On 7 April 2014 9:36:18 PM NZST, Cliffp <enkidu at cliffp.com> wrote:
>>>>
>>>> I did the following:
>>>>
>>>> 1) Formatted a partition /dev/sda5 as ext4 (as cliffp). 2) Logged
>>>> out as cliffp and logged in as user2. 3) Mounted /dev/sda5 as
>>>> /olddisk. 4) Copied /home/cliffp to /oldisk (sudo cp -d -r -x -v
>>>> --preserve /home/cliffp/* /olddisk) 5) Changed fstab to mount
>>>> /dev/sda5 on /home/cliffp. 6) Reboot. 7) Login as cliffp.
>>>>
>>>> That seems to work, except that the Unity bar thing is different
>>>> to what it used to be. Also it prompts me to set up Dropbox.
>>>> However the desktop background is correct, and the desktop icons
>>>> are correct.
>>>>
>>>> What did am I missing?
>>>>
>>>> Cheers,
>>>>
>>>> Cliff _______________________________________________ NZLUG mailing
>>>> list NZLUG at lists.nzoss.org.nz
>>>> http://lists.nzoss.org.nz/mailman/listinfo/nzlug
>>>
>>>
>>
>> _______________________________________________
>> NZLUG mailing list
>> NZLUG at lists.nzoss.org.nz
>> http://lists.nzoss.org.nz/mailman/listinfo/nzlug
>
>
> _______________________________________________
> NZLUG mailing list
> NZLUG at lists.nzoss.org.nz
> http://lists.nzoss.org.nz/mailman/listinfo/nzlug


More information about the NZLUG mailing list