Rsync class files from AIX to windows

Posted on 2012-09-06
Last Modified: 2013-12-23
I have a directory on AIX where I ftp out the java (from windows box) and compile the  java using the shell scripts. I am trying to rsync .class files back to the windows.
The problem here is when I rsync I get all the class files on the AIX on the folder at that point of time.

But I wanted to know if there is a way to only get the class files for the java ftped out recently. Say I ftped 4 java files on to the AIX box and compiled them. I only want to get those 4 class files to the windows box.
Question by:raaj4354
    LVL 19

    Expert Comment

    if you have ssh running on the AIX system you can use pscp from the Putty suite and copy them off using something like the following from the windows system;

    <assumes pscp is in the search path or in c:\!!>
    c:\> pscp root@aixhost:/path/to/file .

    you can do recursive copies using -r (I think)
    LVL 26

    Expert Comment

    Do you have Delta Copy or Cygwin / cwRsync installed and running on the Windows box?

    If not there's nothing for the AIX rsync client to talk to, on your Windows box.

    Also worth a look:

    Author Comment

    I wanted to do the above rsync as part of automation process through my CI tool.


    I have cygwin and rsync installed on the windows side.
    LVL 25

    Accepted Solution

    what you are trying to achieve is a little unclear to me, but nevertheless

    -> rsync cannot copy files more recent than whatever as far as i know

    -> rsync can be provided with a list of files to copy instead of a directory

    -> the find command can easily extract all the files more recent than a given date and it's output can be fed to rsync or any other file transfer daemon. obviously, if your rsyncs are initiated on the windows side, you will have to programatically logon the AIX in order to perform the find command

    many other ways can be throught of including using a script that will hardlink the needed files into a separate directory (and unlink the older ones). obviously a plain rsync in this directory would work

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
    Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now