Results 1 to 2 of 2

Thread: rsync don't update documents

  1. #1
    Join Date
    Sep 2007
    Beans
    471
    Distro
    Ubuntu 11.04 Natty Narwhal

    rsync don't update documents

    I'm trying to use rsync to backup some files problem is that rsync don't update documents like .odt and .ods . What I would like rsync to do is check if document is older (modified) and if it's smaller on the target compare to the source, in that case replace the file on the target. Would anyone please advice how to copy document files?

    I'm using this command, excluding .*
    Code:
    rsync -rtuv --exclude-from 'exlude.txt'  source/ target/

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: rsync don't update documents

    Except for the size requirement, something like this should work:
    Code:
    rsync -av source/ target/
    What do you have on exlude.txt ?

    Regards.

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
  •