Reputation: 32081
I want to automate copying files from a dev environment to a unix server.
When using ANT's SCP task, how does it handle synchronizing the directories?
I would like to ensure that:
Upvotes: 0
Views: 246
Reputation: 328624
scp
is the wrong tool for the task. Try rsync
instead. --delete
will delete stuff that's no longer on the source side. Unmodified files are not copied; in fact, rsync
will only copy those parts of existing files that did change (so it's even faster for partially modified files like log files which have been appended to).
Upvotes: 1