Skip to main content

Automate Starchiver process so your node runs efficiently. (DOCUMENT IN PROGRESS)

Create the folder and place script in it

  1. You need a permanent place to put the script so do the following
  2. mkdir /scripts (This makes the directory)
  3. chown nodeadmin:nodeadmin /scripts  (This changes the owner to the nodeadmin account)
  4. chmod 770 (This allows the Root/Nodeadmin account to Read/Write/Execute)
  5. 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.

  1. type "sudo crontab -e" (Edit the crontab)
  2. Pick 1. nano unless you like other editors.

image.png

 

Add the following to the bottom of the crontab to run the script at 10AM Sunday

0 10  0 /scripts/<starchiver script> -options

image.png

It should look like this...