-
-
Notifications
You must be signed in to change notification settings - Fork 190
Backup
Florian (DF2ET) edited this page May 3, 2023
·
6 revisions
The backup section allows you to download copies of your notes and all ADIF entries at the moment, this will be expanded to other features.
You can automate the ADIF backup and the Notes backup. To do it via CRON, you need to make a read-only API key, and provide it.
# Backup ADIF for all station locations related to API-key (and user), every day at midnight
0 0 * * * curl --silent https://<URL-To-Cloudlog>/index.php/backup/adif/<APIKEY> &>/dev/null
# Backup NOTES for user related to API-key, every day at midnight
0 0 * * * curl --silent https://<URL-To-Cloudlog>/index.php/backup/notes/<APIKEY> &>/dev/null
If you want to download the backups by a cronjob on a regular basis you can use the following shell script. It initiates the backup and downloads the file afterwards. Replace <API_KEY> and <CLOUDLOG_URL> with your appropriate values.
#!/bin/sh
API_KEY="<API_KEY>"
CLOUDLOG_URL="<CLOUDLOG_URL>"
ADIF_BACKUP_FILE=`wget -qO - $CLOUDLOG_URL/index.php/backup/adif/$API_KEY | grep "The backup of your log completed successfully" | sed -e "s#.*/backup/\(logbook_...._.._.._.._.._..\.adi\).*#\1#"`
echo "Downloading $ADIF_BACKUP_FILE."
wget -q $CLOUDLOG_URL/backup/$ADIF_BACKUP_FILE
NOTES_BACKUP_FILE=`wget -qO - $CLOUDLOG_URL/index.php/backup/notes/$API_KEY | grep "The backup of your notes completed successfully" | sed -e "s#.*/backup/\(notes_...._.._.._.._.._..\.xml\).*#\1#"`
echo "Downloading $NOTES_BACKUP_FILE."
wget -q $CLOUDLOG_URL/backup/$NOTES_BACKUP_FILE
exit 0
- Installation on Linux server
- Installation on Windows server
- Updating Cloudlog
- Hints & Tips
- cloudlog.php Config
- API
- Station Locations
- Radio Interface
- ADIF Import / Export
- Logbook of The World
- eQSL
- Print Requested QSLs
- Clublog Upload
- QRZ Logbook
- KML Export