Backup in ftp-mode fails Error No 553 invalid filename

Hi there,

I am using a WD MyCloud (V.2.11.140) and I want to do my backups in my LAN in ftp-mode only as it is described in “Backup statt Lösegeld”, c’t 11/2016, S. 102 .

I tried with Duplicati 1.3.4 and another software personal-backup.

On the NAS ftp ist enabled and users are defined.
Ftp-connection ist established but any file- or directory-action fails.

Logs from the programs schow the problem:

Duplicati:
Error: Fehler Der Remoteserver hat einen Fehler zurückgegeben: (553) Dateiname nicht zulässig. beim Hochladen der Datei “duplicati-full-content.20160714T141746Z.vol1.zip”

personal-backup:
Stat Verbunden.
Empf 12.07.2016 16:31:37: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------220-You are user number 1 of 10 allowed.220-Local time is now 07:31. Server port: 21.220-This server supports FXP transfers220 You will be disconnected after 10 minutes of inactivity.
Gesendet 12.07.2016 16:31:37: USER buero
Empf 12.07.2016 16:31:37: 331 User buero OK. Password required
Gesendet 12.07.2016 16:31:37: PASS *********
Empf 12.07.2016 16:31:37: 230 OK. Current restricted directory is /
Gesendet 12.07.2016 16:31:37: FEAT
Empf 12.07.2016 16:31:37: 211-Extensions supported: EPRT IDLE MDTM SIZE REST STREAM MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*; MLSD ESTP PASV EPSV SPSV ESTA AUTH TLS PBSZ PROT UTF8211 End.
Gesendet 12.07.2016 16:31:37: TYPE I
Empf 12.07.2016 16:31:37: 200 TYPE is now 8-bit binary
Gesendet 12.07.2016 16:31:37: SYST
Empf 12.07.2016 16:31:37: 215 UNIX Type: L8
Gesendet 12.07.2016 16:31:37: TYPE I
Empf 12.07.2016 16:31:37: 200 TYPE is now 8-bit binary
Gesendet 12.07.2016 16:31:37: PWD
Empf 12.07.2016 16:31:37: 257 “/” is your current location
Gesendet 12.07.2016 16:31:37: OPTS UTF8 ON
Empf 12.07.2016 16:31:37: 200 OK, UTF-8 enabled
Gesendet 12.07.2016 16:31:37: CWD 2016-07-12
Empf 12.07.2016 16:31:37: 553 User not allow
Gesendet 12.07.2016 16:31:37: CWD 2016-07-12
Empf 12.07.2016 16:31:37: 553 User not allow
Gesendet 12.07.2016 16:31:37: MKD 2016-07-12
Empf 12.07.2016 16:31:37: 550 Sorry, users are not allowed to create directories
Gesendet 12.07.2016 16:31:37: PWD
Empf 12.07.2016 16:31:37: 257 “/” is your current location
Gesendet 12.07.2016 16:31:37: PWD
Empf 12.07.2016 16:31:37: 257 “/” is your current location
Gesendet 12.07.2016 16:31:37: PWD
Empf 12.07.2016 16:31:37: 257 “/” is your current location
Gesendet 12.07.2016 16:31:37: QUIT
Empf 12.07.2016 16:31:37: 221-Goodbye. You uploaded 0 and downloaded 0 kbytes.221 Logout.
Stat Verbindung aufgehoben.

Im looking foreward to any hints / suggestions / help.
Thanks in advance!

Hermann

Looks like you’re trying to create folders at the top level of the file system ‘/’.

You probably want to cd to the user data area somehow. You’ll have to get the program to do it, since it seems to be running a script. It looks like is has a couple of attempts to change to a backup directory with today’s date (CWD), and, if that fails, it attempts to create a backup directory (MKD). But it’s not being allowed to. Finally, it prints the current directory location (PWD), which is still at the top level.

CWD is the command to ‘change working directory’, so you’ll need one of those. It ought to look something like

CWD DataVolume/shares/backup

The top level root directory “/” is in a fairly small partition, intended for internal housekeeping of the MyCloud, not for bulk data storage. You need to move your bulk data storage to the /DataVolume user data partition.

Whether an FTP user is allowed to move to, or create folders in a MyCloud Share, I don’t know; I don’t use FTP. The response to the CWD commands ‘User not allow’ could be either because you’re not allowed, or because it doesn’t exist.

Thank you for your support!

Now it is working fine. I am not shure for what reason it failed for the last 10 days.

First I made a syntax-error in writing the path.
Second a share war reset after I switched temporarily to public…

However - now it works as I expected it to do.

Thank you for your interest!