Hi litfiba, (or anyone else who can help)
I was hoping you could help and give some further explination as to how to get your script working for me.
I am very new to this so sorry if its a dumb question. I am having trouble trying to automate the backup via FTP to my QNAP NAS.
This is what i get when i try to run the script
* Hostname was NOT found in DNS cache
* Trying 192.168.1.3...
* Connected to 192.168.1.3 (192.168.1.3) port 21 (#0)
< 220 NASFTPD 3.x Server [TS-101]
> USER julian
< 331 Password required for julian.
> PASS MY*PASSWORD
< 230 User julian logged in.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> CWD /
* ftp_perform ends with SECONDARY: 0
< 250-%s DISK FREE SPACE AT THIS DIRECTORY IS ONLY 838,656 Bytes.
< 250 CWD command successful.
> CWD Domoticz
< 250-%s Disk free space at this directory is 906,605,604 KB.
< 250 CWD command successful.
> EPSV
* Connect data stream passively
< 500 EPSV not understood.
* Failed EPSV attempt. Disabling EPSV
> PASV
< 227 Entering Passive Mode (192,168,1,3,4,132).
* Hostname was NOT found in DNS cache
* Trying 192.168.1.3...
* Connecting to 192.168.1.3 (192.168.1.3) port 1156
* Connected to 192.168.1.3 (192.168.1.3) port 21 (#0)
> TYPE I
< 200 Type set to I.
> SIZE Backup
< 550 Backup: not a regular file.
> RETR Backup
< 550 Backup: Not a regular file
* RETR response: 550
* Remembering we are in dir "/Domoticz/"
* Connection #0 to host 192.168.1.3 left intact
curl: (78) RETR response: 550
* Rebuilt URL to:
ftp://192.168.1.3/
* Hostname was NOT found in DNS cache
* Trying 192.168.1.3...
* Connected to 192.168.1.3 (192.168.1.3) port 21 (#0)
< 220 NASFTPD 3.x Server [TS-101]
> USER julian
< 331 Password required for julian.
> PASS MY*PASSWORD
< 230 User julian logged in.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> RNFR /Domoticz/Backup/DB_J_2.gz
* ftp_perform ends with SECONDARY: 0
< 550 /Domoticz/Backup/DB_J_2.gz: No such file or directory
* QUOT command failed with 550
* Closing connection 0
curl: (21) QUOT command failed with 550
* Rebuilt URL to:
ftp://192.168.1.3/
* Hostname was NOT found in DNS cache
* Trying 192.168.1.3...
* Connected to 192.168.1.3 (192.168.1.3) port 21 (#0)
< 220 NASFTPD 3.x Server [TS-101]
> USER julian
< 331 Password required for julian.
> PASS MY*PASSWORD
< 230 User julian logged in.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> RNFR /Domoticz/Backup/DB_J_1.gz
* ftp_perform ends with SECONDARY: 0
< 550 /Domoticz/Backup/DB_J_1.gz: No such file or directory
* QUOT command failed with 550
* Closing connection 0
curl: (21) QUOT command failed with 550
* Hostname was NOT found in DNS cache
* Trying 192.168.1.3...
* Connected to 192.168.1.3 (192.168.1.3) port 21 (#0)
< 220 NASFTPD 3.x Server [TS-101]
> USER julian
< 331 Password required for julian.
> PASS MY*PASSWORD
< 230 User julian logged in.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> CWD /
* ftp_perform ends with SECONDARY: 0
< 250-%s DISK FREE SPACE AT THIS DIRECTORY IS ONLY 838,656 Bytes.
< 250 CWD command successful.
> CWD Domoticz
< 250-%s Disk free space at this directory is 906,605,604 KB.
< 250 CWD command successful.
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (192,168,1,3,4,133).
* Hostname was NOT found in DNS cache
* Trying 192.168.1.3...
* Connecting to 192.168.1.3 (192.168.1.3) port 1157
* Connected to 192.168.1.3 (192.168.1.3) port 21 (#0)
> TYPE I
< 200 Type set to I.
> STOR Backup
< 550 Backup: Not a regular file
* Failed FTP upload: 550
* Remembering we are in dir "/Domoticz/"
* Uploaded unaligned file size (0 out of 472 bytes)
* Connection #0 to host 192.168.1.3 left intact
As I said im very new to this but im trying to learn so any help is greatly appreciated.
Thank you...