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

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