homepage Welcome to WebmasterWorld Guest from 54.198.185.156
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
scp datewise transfer
kkonline




msg:3662624
 7:54 am on May 30, 2008 (gmt 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/ ?

 

wheel




msg:3665032
 5:42 pm on Jun 2, 2008 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved