Got a lil backup script going, which seems to stop halfway thru whilst doing a cp of a load of .tgz files to a windows share.
It manages around 7 or 8 of archives before seemingly going into a background style mode which results in the share being closed before the copy has completed...
smbmount //comp/backup /mnt/win/ -o password=xxxxxxxxx
cp /backup/*.tgz /mnt/win/current/Friday/
umount -l /mnt/win
This is being run via cron.
If the command is run manually the prompt creates a new line at the point about halfway thru, altho if u leave it long enuff it completes. Might be clutching at straws but seems like Linux is saying "this has taken too long so i'm gonna turn it into a background task" at which point the next line is to umount the share and hence killing any further copying...
The backup account then gets mailed telling it that it failed because it could not "create regular files" (apologies, should have copied the msgs but thats the gyst!)
Anyone got aaaaaaaaaaaaaany thoughts on this i'd be most appreciative!