curl -v -u "admin:admin" -T "$FILE" "ftp://192.168.0.1/sda/zip/"
Connected to 192.168.0.1 (192.168.0.1) port 21 (#0)
220 ProFTPD 1.3.4b Server (TP-Share) [192.168.0.1]
USER admin
331 Password required for admin
PASS admin
230 User admin logged in
PWD
257 "/" is the current directory
* Entry path is '/'
CWD sda
* ftp_perform ends with SECONDARY: 0
250 CWD command successful
CWD bzip2
250 CWD command successful
EPSV
* Connect data stream passively
229 Entering Extended Passive Mode (|||57911|)
* Trying 192.168.0.1:57911...
* Connecting to 192.168.0.1 (192.168.0.1) port 57911
* Connected to 192.168.0.1 (192.168.0.1) port 21 (#0)
TYPE I
200 Type set to I
STOR 24.09.24-13:40-49-369302045-5.bz2
150 Opening BINARY mode data connection for 24.09.24-13:40-49-369302045-5.bz2
} [297 bytes data]
* We are completely uploaded and fine
* Remembering we are in dir "sda/zip/"
226 Transfer complete
100 297 0 0 100 297 0 1340 --:--:-- --:--:-- --:--:-- 1343
* Connection #0 to host 192.168.0.1 left intact
Бьет файлы оказывается curl причем только на локальном ftp который у меня на роутере на удаленном такой проблемы нет, у меня в цикле название файла, это дата
DATE=`date +%x-%R-%S-%N`
Connected to 192.168.0.1 (192.168.0.1) port 21 (#0)
220 ProFTPD 1.3.4b Server (TP-Share) [192.168.0.1]
USER admin
331 Password required for admin
PASS admin
230 User admin logged in
PWD
257 "/" is the current directory
* Entry path is '/'
CWD sda
* ftp_perform ends with SECONDARY: 0
250 CWD command successful
CWD bzip2
250 CWD command successful
EPSV
* Connect data stream passively
229 Entering Extended Passive Mode (|||54215|)
* Trying 192.168.0.1:54215...
* Connecting to 192.168.0.1 (192.168.0.1) port 54215
* Connected to 192.168.0.1 (192.168.0.1) port 21 (#0)
TYPE I
200 Type set to I
STOR 5.bz2
150 Opening BINARY mode data connection for 5.bz2
} [298 bytes data]
* We are completely uploaded and fine
* Remembering we are in dir "sda/bzip2/"
226 Transfer complete
100 298 0 0 100 298 0 1480 --:--:-- --:--:-- --:--:-- 1490
* Connection #0 to host 192.168.0.1 left intact