mirror of
https://github.com/schnidrig/openhab-ansible
synced 2026-09-17 06:35:45 +02:00
updated backup script
This commit is contained in:
1 parent
a97a992a9c
commit
dbeff3ea46
1 file changed
+1
@@ -6,6 +6,7 @@ TIMESTAMP=`date +%Y%m%d`;
|
|||||||
tar -C / -czf /tmp/openhab2-backup-$TIMESTAMP.tgz etc/openhab2 var/lib/openhab2
|
tar -C / -czf /tmp/openhab2-backup-$TIMESTAMP.tgz etc/openhab2 var/lib/openhab2
|
||||||
|
|
||||||
echo "Now save the file /tmp/openhab2-backup-$TIMESTAMP.tgz"
|
echo "Now save the file /tmp/openhab2-backup-$TIMESTAMP.tgz"
|
||||||
|
echo " as regular user run: scp /tmp/openhab2-backup-20190422.tgz christian@ds3018:/volume1/backup"
|
||||||
|
|
||||||
# start openhab instance
|
# start openhab instance
|
||||||
#sudo systemctl start openhab2.service
|
#sudo systemctl start openhab2.service
|
||||||
Reference in new issue
Block a user