![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| compare files in two directories and output changed files to third directory | bkeep | Shell Programming and Scripting | 4 | 08-26-2009 06:58 AM |
| Back up of recent modified files | lathish | UNIX for Advanced & Expert Users | 1 | 02-07-2009 01:45 PM |
| Get Files from ftp which are uploaded recent week | narramadan | Shell Programming and Scripting | 1 | 09-27-2007 08:05 AM |
| To keep only the most recent files | *Jess* | Shell Programming and Scripting | 1 | 07-26-2007 11:11 PM |
| delete files except most recent | ST2000 | Shell Programming and Scripting | 5 | 06-21-2005 02:33 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
script to ftp recent changed files
I am trying to write a script to ftp all files/directories changed in a 24hour period to another AIX server. I have wrote a script to generate a list of all files changed within a 24 hour period but dont know how to then ftp these to another server. How do incorporate ftp into this script?
Code:
#!/bin/ksh PROG=`basename $0` DATE=`date '+%d-%m-%y:%T'` LOG=/var/logs/$PROG.$DATE exec > $LOG 2>&1 /usr/bin/logger -p user.info "[$PROG on `hostname`] starting" # Find all files changed within the last 24hours excluding /proc find / -name proc -prune -o -ctime 1 -ls > $LOG /usr/bin/logger -p user.info "[$PROG on `hostname`] completed successfully" exit 0 Last edited by zaxxon; 2 Weeks Ago at 07:14 AM.. Reason: use code tags please |
|
||||
|
Thanks. I've never heard of rsync, but after looking it up on wikipedia it looks like it will do everything I need. Cheers.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| aix, find, ftp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|