Advertisement
carlostico

Untitled

Nov 11th, 2016
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. BACKUP_FILE=/media/pi/HASSUSB/hass-config_$(date +"%Y%m%d_%H%M%S").zip
  4.  
  5. pushd /home/hass/.homeassistant >/dev/null
  6. zip -9 -q -r $BACKUP_FILE . -x"components/*" -x"deps/*" -x"home-assistant.db" -x"home-assistant_v2.db" -x"home-assistant.log"
  7. popd >/dev/null
  8.  
  9. echo Backup complete: $BACKUP_FILE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement