Results 1 to 5 of 5

Thread: Rsync oddity when copying files to prepare for an upgrade

  1. #1

    Default Rsync oddity when copying files to prepare for an upgrade

    Upgrading from 42.2 to 15.1 hence prefix.

    I've used rsync to copy my home directory to another drive to eventually transfer selectively to a completely new machine.

    Code:
    rsync -rvh  /home/john ./
    The copy is where I wanted it etc but if I use dolphin to check number of files etc the destination directory content is lower than the source, both file and folder counts. The desktop was active when I did this but the same thing happens when I copy other directories which are an rsync'd backup of previous version's homes. Not sure what it has missed or if it matters but would be nice to know.

    John
    -

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,441

    Default Re: Rsync oddity when copying files to prepare for an upgrade

    My guess is that you are not transferring symlinks; these are still in the source but not in the destination. The rsync man page recommends -av rather than the -rvh you have used as -a transfers symlinks.

  3. #3

    Default Re: Rsync oddity when copying files to prepare for an upgrade

    Yes. That seems to explain the missing files.Thanks.

    Finding a command off the web

    Code:
    find . -type l -ls
    Plenty of links on the source directories and none on the copies. Actually it looks like it's best not to copy them. Some are ones I have added myself. More from certain applications and more that look to be system related.

    Just so long as they don't provide links to my browser bookmarks as I don't want to loose those. I assume these are somewhere in ~home /.local

    John
    -

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,652
    Blog Entries
    14

    Default Re: Rsync oddity when copying files to prepare for an upgrade

    Please do yourself a favor and use -av . The links aren't there for no reason, certainly not the ones you put there yourself. They belong to a proper backup.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  5. #5

    Default Re: Rsync oddity when copying files to prepare for an upgrade

    Quote Originally Posted by Knurpht View Post
    Please do yourself a favor and use -av . The links aren't there for no reason, certainly not the ones you put there yourself. They belong to a proper backup.
    It isn't a back up. It's for transferring a collection of files I have built up over many years plus emails and browser bookmarks. Any system related and other links copied wouldn't function in my new machine.

    John
    -

Posting Permissions

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