Results 1 to 1 of 1

Thread: touch with rsync

  1. #1
    Join Date
    Jan 2009
    Location
    Denmark
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    touch with rsync

    Hey guys.

    I have a rsync command as follows in a expect script
    Code:
    spawn rsync -a -r -z -v -h -p -i --log-file=/path/rsync.log --progress --delete-excluded -e ssh user@ip:/source /destination
    My question is.
    When rsync has downloaded a file or folder, how can i get rsync to touch the file / folder with a date and timestamp for when the download was completed on the destination?

    Thanks on advance.
    Kind regards.

    EDIT.
    So i see that -a preserves for example timestamps.

    EDIT2.
    Changed -a out with -o and -g along with -p these preserve the group, owner and permissions but not symbolic links and timestamps.
    Problem solved.
    Last edited by Drenriza; October 8th, 2012 at 01:10 PM.

Tags for this Thread

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
  •