Hi Gilbert,

But i am missing time stamp for some of the files and folders.

Is it possible to know what are the files added/modified since last copy?

Cheers
Venkat.


On 10/24/07, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
>
> -----Original Message-----
> From: venkata prasad [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 24, 2007 2:13 PM
> To: [email protected]
> Subject: SCP task to preserve exact time stamp
>
>
> /*
>   I have a requirement like when ever i do build, i need to copy all
> database files/folders from build machine to UNIX machine.
>
> Right now i am uasing SCP Ant task for secure copy. But  it is not
> preserving time stamp for all files and folder.
>
> So i went for 'scp' unix command in exec -ant task . It is preserving
> time
> stamp for some files and folders only.
>
> Could some body help me,  in preserving time stamps for all folders and
> files.
> */
>
> the parameters -p -r should do the job
>
> from the scp man page =
>
> "...
> -p   Preserves modification times, access times, and modes
>      from the original file.
>
> -r   Recursively copy entire directories.
> ..."
>
> here's a snippet from one of my scripts =
>
> <for list="[EMAIL PROTECTED]" param="copyfile">
> <sequential>
> <exec executable="ksh" failonerror="true">
> <arg value="scp -p -r ./@{Lum}/[EMAIL PROTECTED]
> svcscmcs@@@@@{server}:${scptarget}/@{Lum}/opt/[EMAIL PROTECTED]" />
> </exec>
> </sequential>
> </for>
>
>
> Regards, Gilbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to