TS hosting instructions
Revision as of 07:58, 26 August 2020 by old>Admin (→Server automated services)
Installing the server
Installing automated services
This is the installation procedure for remote backup and monitoring.
Prerequisites:
- SSH accces to the server
- TS commandline tools installed and up to date
Detailed information on monitors and back can be found in Server maintenence
Set up monitoring
- Log in into [UptimeRobot.com]
- Add new monitor
- Monitor type = Keyword
- Frindly name = <anything>
- URL = <url to service page> (see example below)
- Keyword = HEALTHY
- Alert when = Keyword not exists
- Click the persons to get notified
- Create monitor
- Tjeck the monitor is working
Example of service page
https://gdpr.tempusserva.dk/demo/service?OkToday
Set up remote backup
Client server setup
- Log into server via SSH
- Run: tsrefreshscripts.sh
- Run: tsbackupcertificates.sh
- Check if cronjobs are missing: sudo crontab -l
- Run: tsinstallcronjobs.sh
Backup server setup
- FTP download: /tsBackup/tsBackupConfig.php
- Add the server entry in the format: name=URL (semikolon seperated)
- FTP upload: /tsBackup/tsBackupConfig.php
Example of format:
foo=foo.tempusserva.dk;bar=bar.tempusserva.dk;hello=hellojohn.tempusserva.dk
Validate backup
- Wait to 24h passes
- Check the backup status URL
- Ensure server is in the list
- Ensure size of backup is sensible (size > 1000)