Покурил. Подскажите, где косяк? Архив с дампом создается, имя в переменной пишется правильное, коннект с ftp-сервером проходит... Но на сервер приходит файл нулевого размера.
09/09/26 04:54:29, 4, 192.168.0.1, , sending welcome message.
09/09/26 04:54:29, 4, 192.168.0.1, , 220 Server ready...
09/09/26 04:54:29, 4, 192.168.0.1, , SYST
09/09/26 04:54:29, 4, 192.168.0.1, , 530 Please login with USER and PASS first.
09/09/26 04:54:29, 4, 192.168.0.1, , USER xxxxx
09/09/26 04:54:29, 4, 192.168.0.1, xxxxx, 331 Password required for xxxxx.
09/09/26 04:54:29, 4, 192.168.0.1, xxxxx, PASS ****
09/09/26 04:54:29, 4, 192.168.0.1, xxxxx, logged in as "xxxxx".
09/09/26 04:54:29, 4, 192.168.0.1, xxxxx, 230 User xxxxx logged in.
09/09/26 04:54:29, 4, 192.168.0.1, xxxxx, SYST
09/09/26 04:54:29, 4, 192.168.0.1, xxxxx, 215 UNIX Type: L8
09/09/26 04:54:29, 4, 192.168.0.1, xxxxx, TYPE I
09/09/26 04:54:29, 4, 192.168.0.1, xxxxx, 200 Type set to I.
09/09/26 04:54:29, 4, 192.168.0.1, xxxxx, PORT 192,168,0,3,185,114
09/09/26 04:54:29, 4, 192.168.0.1, xxxxx, 200 Port command successful.
09/09/26 04:54:29, 4, 192.168.0.1, xxxxx, STOR 26.09.2009_04-53.bz2
09/09/26 04:54:30, 4, 192.168.0.1, xxxxx, asked to upload '/26.09.2009_04-53.bz2' -> 'D:\New\26.09.2009_04-53.bz2' resuming at 0 --> Access allowed.
09/09/26 04:54:30, 4, 192.168.0.1, xxxxx, 150 Opening data connection for 26.09.2009_04-53.bz2
09/09/26 04:54:30, 4, 192.168.0.1, xxxxx, finished uploading '/26.09.2009_04-53.bz2' -> 'D:\New\26.09.2009_04-53.bz2' from 0 to 0 (00:00:01 - 0 KBytes/s).
09/09/26 04:54:30, 4, 192.168.0.1, xxxxx, 426 Connection closed; Error 10054 in function ReadBuffer: Connection reset by peer
09/09/26 04:54:33, 4, 192.168.0.1, xxxxx, QUIT
09/09/26 04:54:33, 4, 192.168.0.1, xxxxx, 221 Goodbye.
09/09/26 04:54:33, 4, 192.168.0.1, xxxxx, disconnected. (00d00:00:04)