[X-Unix] shell scripting
David Ledger
dledger at ivdcs.demon.co.uk
Sat Jan 17 04:43:36 PST 2004
>From: Stroller <MacMonster at myrealbox.com>
>On Jan 16, 2004, at 3:34 am, Brian Medley wrote:
>
>>
>> so:
>>
>> cd $src_dir
>> find . -newer reference_file -print0 | xargs -0 -J % cp % $dst_dir
>> touch reference_file
>>
>> Should work?
>
>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.
I'm lost. What do you mean by 'files which are named'?
David
--
David Ledger - Freelance Unix Sysadmin in the UK.
Chair of HPUX SysAdmin SIG of hpUG technical user group (www.hpug.org.uk)
dledger at ivdcs.co.uk (also dledger at ivdcs.demon.co.uk)
www.ivdcs.co.uk
More information about the X-Unix
mailing list