Script to backup to a Synology NAS

All kinds of 'OS' scripts

Moderator: leecollings

desertdog
Posts: 84
Joined: Sunday 14 August 2016 13:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: Script to backup to a Synology NAS

Post by desertdog »

I have changed all the credentials to
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
On my Synology, there is a folder domoticz in the root of the ftp shared folder. (chmodded 777)
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 "/"
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests