• 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.

Scheduled Task containing a password

Peter Downes

Basic Pleskian
Hi All

I have created a scheduled task in plesk as root to send a server backup to an external (ftp) location.
Naturally the task contains the ftp password for the destination.

I would prefer to use the GUI instead to schedule the backup but I need to exclude a specific domain from the back up.

Do you think this is a 'reasonable' thing to do? Or is it just too 'high' risk?
 
You can write the special script with ftp password and option for domain excluding for running this backup task and use it for Scheduled Task in Plesk UI.
 
Sorry IgorG - I'm still learning the basics and am still confused.

I have the command with options written - all good.
--
/usr/local/psa/bin/pleskbackup server --prefix="MyScheduledTask" --skip-logs --exclude-domain=notthisdomain.com --output-file=ftp://**.**.***.*** --ftp-login=destination.com --ftp-password=mypassword --ftp-passive-mode
--

And have this pasted into Tools and Settings > Scheduled Tasks > System Users > root > Scheduled Tasks. Its working fine there.

Could I run/put this script somewhere else that is safer?
Thanks for your help.
 
Create file backup.sh in /usr/bin/ for example, with content:

Code:
#!/bin/sh
/usr/local/psa/bin/pleskbackup server --prefix="MyScheduledTask" --skip-logs --exclude-domain=notthisdomain.com --output-file=ftp://**.**.***.*** --ftp-login=destination.com --ftp-password=mypassword --ftp-passive-mode

and make it executable with

# chmod +x /usr/bin/backup.sh

After that use command /usr/bin/backup.sh for Scheduled Task.
 
Back
Top