[X-Unix] shell scripting

Stroller MacMonster at myrealbox.com
Fri Jan 16 08:42:30 PST 2004


On Jan 16, 2004, at 3:52 pm, Brian P. Minnebo wrote:

>>
>> On Fri, Jan 16, 2004 at 10:45:23AM +0000, Stroller wrote:
>>
>>> Yes, but that only copies files which are named. I'd work on the 
>>> basis
>>> that you want to copy EVERY file in somefolder into backupfolder - so
>>> that if someone saves a new file to somefolder, that get's backed up,
>>> too.
>>
>> Would explain how you can have a file that is not named?
>
> I think he mis-understood the find given in the example.  It prints 
> all files newer than the timestamp file.
>
> He probably thought it only printed the named file.

Ah, yes, *cough* excuse me. Must pay more attention in future.

I don't really like using touch-files that way - IMO all files should 
be backed up if they've changed since the copy of the same file which 
is IN the back-up, if you see what I mean. Backing up only files newer 
that somefile.touch doesn't handle the possibility that the other files 
in the backup have got corrupted or deleted.

Stroller.



More information about the X-Unix mailing list