• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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