SERVER="192.168.1.100" # IP of Synology NAS, used for ftp
USERNAME="RPiBackup" # FTP username of Network disk used for ftp
PASSWORD="XXXXXX" # FTP password of Network disk used for ftp
DESTDIR="/opt/backup" # used for temorarily storage
DESTDIRNAS="/domoticz/" # Path to your Synology NAS backup folder
DOMO_IP="192.168.1.104" # Domoticz IP
DOMO_PORT="8080" # Domoticz port
but I still can't seem to make it work. when I read the logs, the errors I get are
Code: Select all
Connected to 192.168.1.100 (192.168.1.100) port 21 (#0)
< 220 SERVERNAME FTP server ready.
> USER RPiBackup
< 331 Password required for RPiBackup.
> PASS fXXXXXX
< 230 User RPiBackup logged in.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> CWD /
* ftp_perform ends with SECONDARY: 0
< 250 CWD command successful.
> CWD domoticz
< 550 No such file or directory.
* Server denied you to change to the given directory
I also tried removing the directory from the config file and just leaving '/', but i then get the error:
Code: Select all
> TYPE I
< 200 Type set to I.
> STOR telegram_scripts_20210406140401.tar.gz
< 553 telegram_scripts_20210406140401.tar.gz: Permission denied.
* Failed FTP upload: 553
* Remembering we are in dir "/"