• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Hourly ftp backup using pleskbackup utility not working

AdelM

Basic Pleskian
Hello

I have tested hourly backup using pleskbackup utility based on this Article How to create hourly backups in Plesk

My goal is to backup hourly to an ftp server, I'm using the following command :

/usr/local/psa/bin/pleskbackup --domains-id 2 --output-file=ftp://myserver.tld/bak/folder --ftp-login=mylogin --ftp-password=mypassword

The problem is that backups are performed but never sent to ftp storage. ftp access credentials are ok and used to perform ftp backup from the backup manager.

Thanks for any help or advice.

Best regards

-------------------------------------

OS ‪ : Ubuntu 16.04.6 LTS‬
Product : Plesk Onyx Version 17.8.11 Update #45,
 
Add / to the end of URL
/usr/local/psa/bin/pleskbackup --domains-id 2 --output-file=ftp://myserver.tld/bak/folder/ --ftp-login=mylogin --ftp-password=mypassword
 
Hello Denis

Thanks for answering.

I added / at the end but still the same problem, backup files are not sent to ftp server.

Best
 
Add the option -vvvvv and look for errors in the command output
/usr/local/psa/bin/pleskbackup --domains-id 2 --output-file=ftp://myserver.tld/bak/folder/ --ftp-login=mylogin --ftp-password=mypassword -vvvvv
 
Hello Denis

Thanks remembering me the verbose option

After reading the backup Iogs, I understood what going wrong; Some characters in the password such as $ or @ are causing the issue, because all characters that follow these signs are removed
In my case, password has a @ sign and a $ signs and works without any issue when backup is executed from the backup manager.
I was aware about the @ sign as the ftp credentials short syntax uses it, but didn't expect that $ sign may cause that.

Hope this issue will be fixed in a near update.

Best regards

-----------------------------------------------------------------
Task "/usr/local/psa/bin/pleskbackup --domains-id 2 --only-mail --output-file=ftp://myserver.tld/bak/folder/ --ftp-login=mylogin --ftp-password=mypassword$chars --ftp-passive-mode -vvvvv" successfully completed in 63 seconds, output:

[18835]: 2019-03-26 09:53:11.029 DEBUG STDIN=
[18835]: 2019-03-26 09:53:11.029 INFO 6bbd7f4d-84cc-4d2b-86d0-f3bc555f1fc6 Create backup task description
[18835]: 2019-03-26 09:53:11.030 INFO 9b6d723b-336d-4076-8e1e-2228cc260013 Create task for backup
[18835]: 2019-03-26 09:53:11.033 DEBUG Task data: <?xml version="1.0" encoding="UTF-8"?>
<backup-task-description>
<misc owner-name="server" top-object-name="server" owner-may-use-server-storage="true" owner-type="server" keep-local-backup="false" verbose-level="5" top-object-type="server" owner-guid="00000000-0000-0000-0000-000000000000"/>
<dumps-storage-credentials use-passive-ftp-mode="true" storage-type="foreign-ftp">
<login>mylogin</login>
<password>mypassword</password>
<hostname>myserver.tld</hostname>
<root-dir>bak/test/</root-dir>
<file-name></file-name>
</dumps-storage-credentials>
<backup-specification>
<backup-options type="full" filter="only-mail"/>
<object-to-backup type="domain" id="2"/>
</backup-specification>
</backup-task-description>
 
You need to quote the password argument. That is shell behaviour, not pleskbackup command
/usr/local/psa/bin/pleskbackup --domains-id 2 --only-mail --output-file=ftp://myserver.tld/bak/folder/ --ftp-login=mylogin '--ftp-password=mypassword$chars' --ftp-passive-mode -vvvvv
 
Denis

Thanks, that did the trick, it's working now as expected :), backups are uploaded to ftp and deleted from the server.

Is there a way to keep only backups of the last day or 2 days ? Is there any backup rotation such as in the backup manager ?

Best regards
 
Back
Top