Rsync not updating timestamp

Perhaps the best way to explain the syntax is with some examples: This would transfer all files matching the pattern *.c from the current directory to the directory src on the machine foo.If any of the files already exist on the remote system then the rsync remote-update protocol is used to update the file by sending only the differences in the data.I'm not sure if this is a Vagrant issue or a Virtual Box issue, but I thought I'd ask here first.I'm running Vagrant on OSX Lion with the base lucid32 box.There has always been oddities with guard and virtualbox shared folders so I'm not sure :( I'd try pinging the [vagrant] mailing list to see if anyone else has seen this.

This would recursively transfer all files from the directory src/bar on the machine foo into the /data/tmp/bar directory on the local machine.

You can think of a trailing / on a source as meaning "copy the contents of this directory" as opposed to "copy the directory by name", but in both cases the attributes of the containing directory are transferred to the containing directory on the destination.

In other words, each of the following commands copies the files in the same way, including their setting of the attributes of /dest/foo: You can also use rsync in local-only mode, where both the source and destination don't have a ':' in the name.

When I try to run guard within the VM, it works fine if I touch the files from within the VM.

However, touching the files in OSX doesn't trigger any of the guards even though the file changes are successfully synced over. I don't have any ideas, but definitely not a Vagrant issue itself, unless there is a setting I'm forgetting to set.

Search for rsync not updating timestamp:

rsync not updating timestamp-70

You can also specify any remote shell you like, either by using the -e command line option, or by setting the RSYNC_RSH environment variable.

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “rsync not updating timestamp”