• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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