LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2004, 08:27 AM   #1
jair666
LQ Newbie
 
Registered: Feb 2004
Posts: 1

Rep: Reputation: 0
Angry Large copying to windows share failing...


OK peeps

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...

Code:
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!

Jair
 
Old 04-19-2004, 09:02 AM   #2
alveric
LQ Newbie
 
Registered: Apr 2004
Posts: 15

Rep: Reputation: 0
To get some verbose messages, try "cp -v" (for *mount, check the man pages), and redirect stdout and stderr to some files.

Then you could know more precisely what happens, and when it breaks down...

Maybe there are some restrictions, like quotas (total size of number of files), or filename length that you overstepped. Have you checked the free disk space just before the script wakes up ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying large files to FAT32 sketch7 Linux - General 11 10-22-2007 10:13 AM
I/O error when copying large file from Memory Stick airman99 Linux - General 3 08-22-2005 09:26 AM
Samba hangs up at copying many large files ogcu Linux - Networking 1 05-19-2004 01:29 AM
perl->large data structures->copying lackluster Programming 0 08-20-2003 10:27 AM
Error copying large files from cdrom patrickyeo Linux - Hardware 1 11-03-2002 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration