aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/opensim-crontab.txt
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-11-08 15:49:56 +1000
committerDavid Walter Seikel2016-11-08 15:49:56 +1000
commit96eda14b7a1caff77da000a9a957b20ab1a1bb6e (patch)
treeceb91518776a8b36af8f08c155074fb77f5a437a /scripts/opensim-crontab.txt
parentReduce default logging level to INFO. (diff)
downloadopensim-SC-96eda14b7a1caff77da000a9a957b20ab1a1bb6e.zip
opensim-SC-96eda14b7a1caff77da000a9a957b20ab1a1bb6e.tar.gz
opensim-SC-96eda14b7a1caff77da000a9a957b20ab1a1bb6e.tar.bz2
opensim-SC-96eda14b7a1caff77da000a9a957b20ab1a1bb6e.tar.xz
Lots of hacking up the scripts to work with the new setup, and more.
Diffstat (limited to 'scripts/opensim-crontab.txt')
-rw-r--r--scripts/opensim-crontab.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/opensim-crontab.txt b/scripts/opensim-crontab.txt
new file mode 100644
index 0000000..f26b25d
--- /dev/null
+++ b/scripts/opensim-crontab.txt
@@ -0,0 +1,16 @@
1# to see current crontab for opensim
2# $ sudo crontab -u opensim -l
3#
4# to install this crontab for opensim:
5# $ cat /opt/opensim/current/scripts/opensim-crontab.txt | sudo crontab -u opensim -
6#
7# at midnight, remove old logs, files created 3 or more days ago
8#0 0 * * * find /var/log/opensim -ctime +1 -delete
9# experimental version using savelog -c cycles all opensim log files over 7 days
100 0 * * * /usr/bin/savelog -c 7 /var/log/opensim/*.log > /dev/null
11
12# Backup the inventories and sims every 6 hours.
130 */6 * * * /opt/opensim/current/scripts/backup-sims.sh
14
15# Only backup inventories on the grid server itself.
16#55 */6 * * * /opt/opensim/current/scripts/backup-inventories.sh