Find the answer to your Linux question:
Results 1 to 2 of 2
I just found out about rsync recently and am using it to sync files from one server to another. I am using the --delete option to clean up files on ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    10

    rsync question - how to preserve a file on destination/receivng server


    I just found out about rsync recently and am using it to sync files from one server to another.
    I am using the --delete option to clean up files on the receiving server but there is one file I want to keep.
    Is that possible?
    I have looked at --exclude but that all seems to do is allow me to exclude a file from being copied from the sending server.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,601
    Write a bash script that moves the files you want to keep to another directory, or removes their writeable attributes?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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