1

Possible Duplicate:
Linux equivalent to robocopy?

I have two websites - one is basically a development version and the other is a production version of the same site. So I'd like to be able to merge the changes made to the development site based on the modified date of the files. Is this possible with the 'cp' command?

slim
  • 847

2 Answers2

6

Use rsync -- here's some info -- http://www.samba.org/ftp/rsync/rsync.html

JoelFan
  • 4,022
1

As JoelFan advised, rsync would most likely be the tool you seek. If you can't go with the full blown rsync client/server setup, it works just as well over ssh.

An rsync over ssh example:

rsync -cavzu /some/dirs/and/files user@host:/some/destination/
Matt
  • 406