Enter credentials and connection information for source Salesforce organization in build.properties
Create retrieve targets in build.xml
Construct a project manifest in package.xml
Run the Ant Migration Tool to retrieve metadata files from Salesforce
Enter credentials and connection information for destination Salesforce organization in build.properties
Run the Ant Migration Tool to deploy metadata files or deletions to Salesforce