[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Need help from bash experts... humm



On Tue, 12 Feb 2002, Greg Murphy wrote:

> Greetings,
> 
> The following should work:
> 
> #!/bin/sh
> sourcedir="/mount/windows/spaced name"
> cp "$sourcedir"/* $target

i say that the above will barf on  windows filenames like 

"tom's proposal.doc" and  "2002 Budget: 1st quarter"
few other whacky names ( wierd characters ) are allowed too...

 
remember...they can create file and directory names that
is NOT allowed on *nix

and depending in which combo and version of apps...
you will get varying degree of success or failures

simple case:

find /mnt/windows -mtime -7 -print | tar cvf /mnt/backups.tgz -T -
-- vs --
tar cvf /mnt/backups.tgz ` find /mnt/windows -mtime -7 -print`


just my prior heaadaches when dealing with backing up windoze boxes

c ya
alvin



Reply to: