I'm trying to run a back-up bash script in via Plesk scheduled tasks on a CentOS GoDaddy Managed Dedicated Server. I'm having a frustrating amount of trouble with this (made worse by the fact that it was working and then stopped...).What I want to happen: I want an entire back-up of the directory I'm specifying to back-up, placed into the backups directory.The script I am using: https://github.com/etiennerached/godaddy-backup-scriptI have tried:backupDirectory='backups'filesPath='/'I have also tried about all the things I can think to try in the filesPath variable. www/vhosts/subscription-name, html/vhosts/subscription-name, /var/html/vhosts/subscription-name/, /var/www/vhosts/subscription-name/, /subscription-name/, ../, html, httpdocs, and more I've forgotten.Settings:It's set to run via Plesk Scheduled Tasks. The call to the script is: /bin/bash backups/backup.sh and everything but minutes is set to *. Minutes is set to */1.The script is /var/www/vhosts/subscription-name/backups as backup.sh, set to 777 permissions. The folder it's in is also set to 777 permissions. Both of these things are to make sure it's not the permissions screwing me up.There is a second script, test.sh. It's in the same directory as backup.sh with the same Plesk Scheduled Tasks settings and the same permissions. It's dutifully writing to a text file every minute as directed.I thought the script executes in the home directory of my subscription, so I don't really understand why '/' and 'backups' aren't working. But if it executes in the root directory of my server, shouldn't one of the complete path calls work?
Back-up script via bash -- issues with file paths?
bash;shell script