• 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!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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