Automate Starchiver process so your node runs efficiently. (DOCUMENT IN PROGRESS)
Create the folder and place script in it
- You need a permanent place to put the script so do the following
- mkdir /scripts (This makes the directory)
- chown nodeadmin:nodeadmin /scripts (This changes the owner to the nodeadmin account)
- chmod 770 (This allows the Root/Nodeadmin account to Read/Write/Execute)
- cp /tmp/<starchive script.sh> /scripts (This copies the script from the /tmp directory to /scripts
Crontab - Crontab is scheduler so you can launch scripts hourly/daily/weekly/monthly.
- type "sudo crontab -e" (Edit the crontab)
- Pick 1. nano unless you like other editors.
Add the following to the bottom of the crontab to run the script at 10AM Sunday
0 10 0 /scripts/<starchiver script> -options
It should look like this...