Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6083951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:27:49+00:00 2026-05-23T11:27:49+00:00

I want to automate copying files from a dev environment to a unix server.

  • 0

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:

  1. Files that are no longer in my source are removed from the destination server
  2. Files that didn’t change should not be copied (it would take forever to fully sync every jar file every time).
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:27:50+00:00Added an answer on May 23, 2026 at 11:27 am

    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).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to automate a Windows 2000+ server reboot process using Task Scheduler or
I want to automate some GUI tasks using Selenium. And integrate this task in
I want to automate Excel using Perl to do the following task(s): For a
I want to Automate the build process of my company. We are Using.Net platform
work on SQL Server 2000. want to Automated Email Notifications using SQL Server Job
I want to automate a fairly simple task. For this I have written a
I want to automate filling in data on a website using clojure. For this
I want to automate a job involving font lock mode using Emacs. I want
I'm dealing with a Virtuozzo server and want to automate logging into each container
I have a batch file that automates copying a bunch of files from one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.