Results 1 to 4 of 4

Thread: rsync home folder to new Computer

  1. #1
    Join Date
    Mar 2013
    Beans
    69

    rsync home folder to new Computer

    I need to migrate some user to new Workstation with Ubuntu 18.04 and i would like to to synchronize their home folder, data and personal settings(ie bashrc,wallpaper,favourite....etc..). The new profile wiill use a new name convention si basically the command i was thinking to run from the old computer is:

    Code:
    rsync -avz /home/user/   name.surname@192.168.1.100:/home/name.surname/
    is correct? tanks in advance for any advice...
    Last edited by oldos2er; 1 Week Ago at 04:59 PM. Reason: Normalized font, added code tags.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    16,563
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: rsync home folder to new Computer

    Try it, see if it works. Symbolic links, if any, will probably break. If they use sparse files, those will explode on disk too. Hardly anyone uses those outside complex server software deployments.

    A find could be used to look for either of those types, to see if you need to worry or not.

    I would probably use root with a userid mapping, but whatever. I've never seen fname.lastname used for HOME directories in 25+ yrs. https://serverfault.com/questions/73...names-on-linux says that a . isn't allowed in the userid normal regex, so do that at your own risk.

    Is there some underlying issue trying to be solved?

  3. #3
    Join Date
    Mar 2013
    Beans
    69

    Re: rsync home folder to new Computer

    We use the format name.surname because basically is integrated with Active Directory...

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    16,563
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: rsync home folder to new Computer

    Quote Originally Posted by giobaxx View Post
    We use the format name.surname because basically is integrated with Active Directory...
    AD has POSIX extensions. Aren't those required for SSSD to work?
    https://access.redhat.com/articles/3023821

    Some things just aren't worth the hassle and doing something non-standard with userid will end badly, I fear. I'm less concerned about the HOME directory names/locations. Those can be anywhere, include any valid characters for the file systems involved. Should be 100% fine. Programs and tools will check/parse a userid all the time. Every programming team will probably follow the standard for allowed characters, which doesn't appear to include a period.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •