While Loop in script not restoring files or subdirectories.

2014-01-14 Thread Pasta_Fazole
Thanks Dwight! That did the trick. The addition off "/*" to my variable "paths" worked for me. ]# while read paths; do dsmc restore -server=tsmserver -virtualnodename=fileserver -password="password" $paths/* -subdir=yes "/var/restore/"; done < /scripts/2014.sharepaths +--

While Loop in script not restoring files or subdirectories.

2014-01-14 Thread Pasta_Fazole
I'm trying to restore a selection of paths from TSM. The directory "/var/smb/files" has many paths in it, but I don't want to restore all of them. I just want to restore those paths that I have listed in the file "/scripts/2014.sharepaths". My problem is that only the top directories are gettin