Created
February 5, 2021 20:01
-
-
Save ahue/a87705eecdba9e49a5c4bfe3a3da19e2 to your computer and use it in GitHub Desktop.
Openhab2 Backup Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # create new folder for the day | |
| DATE=`date +%Y-%m-%d_%H-%M-%S` | |
| BACKUP_PATH=~/openhab2-backup | |
| # backup metadata in ./meta | |
| mkdir -p $BACKUP_PATH | |
| sh /usr/share/openhab2/runtime/bin/backup $BACKUP_PATH/openhab2-backup-$DATE.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment