Welcome to WebmasterWorld Guest from 107.22.74.47

Forum Moderators: bakedjake

Message Too Old, No Replies

scp datewise transfer

     
7:54 am on May 30, 2008 (gmt 0)

Full Member

5+ Year Member

joined:Aug 13, 2007
posts:217
votes: 0


hi,
I want to use scp command and transfer all the files of a particular date, then what command usage should make it work

scp date <ip address>:/usr/bin/ ?

5:42 pm on June 2, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member wheel is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 11, 2003
posts:5069
votes: 12


I'm not so sure that what you've said works. I think you'd have to do some shell scripting that takes a directory list, grabs from it files modified during today's date, then creates a file list - then scp that over. It can be done, but seems cumbersome.

If you're looking to copy over just files that have bee changed today, then use rsync over ssh. What that will do is only copy over files that have been changed, keeping a duplicate copy on another server. That's not exactly what you asked for, but perhaps that's actually what you're looking for.