• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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