Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I want to use rsync to make backups of my server. What flags do i need to use with rsync to make sure that i keep the original owner ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Posts
    8

    Keep permissions with rsync?


    Hi,

    I want to use rsync to make backups of my server. What flags do i need to use with rsync to make sure that i keep the original owner and group permissions on those files and folder? And if i want to resore them, what flags should i then use?

    Thanks

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,441
    Code:
    man rsync
    Note: you can sync by uid/gid or by user/group
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Nov 2010
    Posts
    8
    Quote Originally Posted by Irithori View Post
    Code:
    man rsync
    Note: you can sync by uid/gid or by user/group
    i have of course read the manual. But i'am not 100% sure which flags to use.

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,441
    -a is *probably* what you want.
    But rsync is a very versatile tool, hence the many options.
    As you have read the manual, my advise would be to test the line first.
    You must always face the curtain with a bow.

Posting Permissions

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