Symptoms
-
FTP backup creation failed with one of the following errors:
PLESK_ERROR: Error: Unable to export backup: Transport error: Unable to create the directory ‘ftp://ftp.domain.tld/Backup/example.com/’: Curl error: (21) Quote command returned error: Last FTP request: MKD example.com Last FTP response: 550 Cannot create a file when that file already exists.
PLESK_ERROR: Unable to create remote backup. Error: Unable to export backup: Transport error: Unable to create the directory ‘ftp://203.0.113.2/backup’: Curl error: (21) Quote command returned error: Last FTP request: MKD backup Last FTP response: 550 Directory already exists
PLESK_ERROR: Unable to create remote backup. Error: Unable to export backup: Transport error: Unable to create the directory ‘ftp://203.0.113.2/backup’: Curl error: (21) Quote command returned error: Last FTP request: MKD backup Last FTP response: 550 Can’t create directory: File exists
PLESK_WARN: Unable to create remote backup, the local backup will be created. Error: Unable to export backup: Repository error: Unable to create the destination directory
PLESK_WARN: Unable to find base backup for creation of incremental one, the full backup will be created. Error: Failed to exec pmm-ras: Curl error: Unable to resume an interrupted download: (28) Timeout was reached: Last FTP request: RETR
-
Use passive mode option is enabled for FTP server in Tools & Settings > Backup Manager > Remote Storage Settings
Cause
Product issue:
-
#PPP-46305 “Creating an incremental backup in the FTP storage no longer fails.”
Fixed in:- Plesk Obsidian 20 December 2019
Resolution
Workaround
Please consider updating your server:
Or:
If update is not possible for some reason you may try the following
For Linux
-
Create a backup for
cuBackupAgent.php
file:# cp -ap /usr/local/psa/admin/plib/api-common/cuBackupAgent.php{,.bkp}
-
Download the custom
cuBackupAgent.php
file:# wget https://plesk.zendesk.com/hc/article_attachments/360006728119/cuBackupAgent.zip
-
Unzip it and replace the original file
# unzip ./cuBackupAgent.zip
# mv ./cuBackupAgent.php /usr/local/psa/admin/plib/api-common/cuBackupAgent.php
For Windows
-
Connect to the server via RDP
-
Download the file cuBackupAgent.zip
-
Unzip the content of the file cuBackupAgent.zip
-
Back up the following file
%plesk_dir%adminplibapi-commoncuBackupAgent.php
-
Place the new
cuBackupAgent.php
extracted in Step 3 to the%plesk_dir%adminplibapi-common
folder.