• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

FTP Backup - Command line passive mode

Will-NYESDigital

Regular Pleskian
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Parallels Plesk Panel 11.5.30 MU #39 CentOS 6.3 (Final) 64bit

PROBLEM DESCRIPTION

In addition to the FTP Repository backup we have set up on our servers we run another routine to a separate location which is initiated from a scheduled task command line. Both backups should be using passive mode and the first backup which is ran through the plesk gui works fine but the command line backup fails at the point of transferring the file to the ftp server.

STEPS TO REPRODUCE

The command line used initially was:
/usr/local/psa/bin/pleskbackup server -v --output-file=ftp://ipaddress/remotefolder/filename.tar --ftp-login=username --ftp-password=password

This failed to export but if I created a rule in the plesk firewall to allow all incoming traffic from the IP of the FTP server it is transfering to, it then works, which would indicate the command line ftp is running as an active connection.

When I then tried to add the passive command it is still failing:

/usr/local/psa/bin/pleskbackup server -v --ftp-passive-mode --output-file=ftp://ipaddress/remotefolder/filename.tar --ftp-login=username --ftp-password=password
and
/usr/local/psa/bin/pleskbackup server -v --output-file=ftp://ipaddress/remotefolder/filename.tar --ftp-passive-mode --ftp-login=username --ftp-password=password

Providing the passive command has been added at the correct place in one of the above it should work but the file still doesn't transfer.

ACTUAL RESULT

Backup runs but fails to export

EXPECTED RESULT

The command line backup should backup and transfer file to remote ftp location using passive mode as it does through the gui without having to open up any additional ports in the firewall.

ANY ADDITIONAL INFORMATION

Note: (maybe related) On a vanilla install of plesk the original command initially used worked fine. Once the firewall was changed for our config (we deny smtp) it then fails. However if we then allow the same rules we deny it still doesn't work, only on a clean install which is odd.

Providing the command is correct does anyone know how I can get this to run in passive mode without opening anything else on the firewall. Thanks.
 
Back
Top