scp truncate text file busy - copying file is not a running binary
I am having problems with scp during a backup operation
I added a ps -ef before and after the scp operation used during the backup.
The backup is a script to backup a Zimbra Server
I am including the code segment that I am having problems
How can I see which process is locking the file that is being truncated?
Try lsof it shows open files.
I will replace ps -ef
I will replace the ps -ef line with lsof in the code.
This script backup runs only on Saturdays, and do not have a test system that could replicate the problem sooner.
I will make the change on the code today, but I have to wait until Monday to see the outcome.
So I will have to post again in this thread next week. Sorry for the delay.
I change ps -ef by lsof and this is what I got
After changing the ps -ef line to lsof I did not see why the scp reports Text File busy.
I am including the new email outcome as attachment
The attachments do not accept file larger that 256KB, but the email is 1MB large so I zipped the file.
Zip is not a permitted extension so I appended a .txt to the file name
I think the problem is some kind of timeout of the scp command.
It copies successfully various files, among them two of 4GB size, before failing with this file which is a 2~3GB file
|All times are GMT -5. The time now is 11:13 AM.|