-   Programming (
-   -   Losing Files (

combatseabee 10-08-2007 12:58 PM

Losing Files

I have a problem with files getting lost while transferring and getting a power surge the day before. What is happening is I have to transfer files from the day before to create an "End of Day." I use the Julian Date to refer to the previous date say for 10/7/07 I would use 07280 where 07 is the year and 280 is the Julian date. So when the server is transferring files at night and I get a power surge, the files are not there the next day. I need to create a script something like:

find eal*.n where n=date ...

Something like that, please help ???

unSpawn 10-08-2007 03:51 PM


Originally Posted by combatseabee (Post 2917412)
So when the server is transferring files at night and I get a power surge, (..) I need to create a script

Instead of looking at the symptoms shouldn't you be looking at getting a UPS / surge filter?

chrism01 10-08-2007 06:43 PM

Well, depending on your options, if you've got files like
where n= file create date, most people use the convention that n will be formatted like: YYYYMMDD.
This makes it easy to sort files at the cmd line and is also easy for people to read.
You can then simply search for files whose 'extension' is > desired date.
One option is to use rsync, which will only copy any differences it can find between the src and tgt machines::/directory.
(Will do on the fly compression and can use ssh protocol if reqd).

combatseabee 10-10-2007 11:52 AM

Thank You
Thank you soooo much, I finally got a reply from someone who understands what I'm going through. This sounds more like what I'm looking for. I will look at this again and let you know what I decided and if it works. Thanks ...

All times are GMT -5. The time now is 01:05 PM.