![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Possible to use a Java app with dll files on Unix-systems | Scorp-D | UNIX for Dummies Questions & Answers | 3 | 03-29-2007 10:52 AM |
| Creating create mirrored disk files systems using mkfs command | GLJ@USC | UNIX for Dummies Questions & Answers | 4 | 11-07-2006 01:52 PM |
| Managing nodes??? | TRUEST | UNIX for Advanced & Expert Users | 5 | 03-21-2003 05:47 AM |
| Number of disks, space available, files systems ? | geogeo | Filesystems, Disks and Memory | 2 | 09-30-2002 06:28 AM |
| managing users | SmartJuniorUnix | UNIX for Dummies Questions & Answers | 4 | 09-20-2000 03:34 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
advice on managing files between two systems
I am looking for some guidance to see if this is the most efficient solution.
I have a piece of software that updates a directory every night at 2am. The directory contains xml files so at 2am any new files are written, any modified files are modified and any deleted files are removed from the directory. I need to send new and modified files to a different system. I also need to send a list of deleted files. I had thought about using rsynch but the system I am feeding doesn't want to upload all files every day as it is a drain. That is why they want new/amended files only and a list of deleted files. Here's my plan; - directory on main server (let's call is 'a') is refreshed at 2.00am - i can run rscnch on 'a' and a new folder 'b' at 4.00am - between 2.00am and 4.00am folder 'a' and 'b' will be different. - at 2.30am i can run a chron job on directory 'a' to send the new/amended files to the other system. - at 3.00am i can run a script to cmpare the difference between 'a' and 'b' and output a list of files that are in 'b' but not 'a'. this can then be sent to the other system. It seems a bit long winded but I am not aware of another way to do this. Does anyone have any suggestions for a better approach? Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|