easeKItMAn

joined 2 years ago
[–] easeKItMAn 42 points 2 years ago (1 children)

wagner territorial gains in russia dramatically faster than in ukraine.

[–] easeKItMAn 2 points 2 years ago
[–] easeKItMAn 1 points 2 years ago

I second this approach and have it running since several years. Tried volumio/jelly and others but mpd/snap is the most flexible one. Spin up docker mopidy/snapserver/snapweb, and if required shairport. It basically enables you streaming like Sonos to other instances running snapclients connected to speakers. All controlled via webUI, or native apps or Airplay. My setup is controlled via homeassistant and handles playlist generation via custom bash scripts + syncing to Navidrome. Though, it may require some fiddling compared to other out-of-the-box but lesser flexible solutions, imho.

[–] easeKItMAn 1 points 2 years ago

Bind mounts are easy to maintain and backup. However if you share data amongst multiple container docker volumes are recommend especially for managing state.

Backup volumes:

docker run --rm --volumes-from dbstore -v $(pwd):/backup containername tar cvf /backup/backup.tar /dbdata

  • Launch a new container and mount the volume from the dbstore container
  • Mount a local host directory as /backup
  • Pass a command that tars the contents of the dbdata volume to a backup.tar file inside /backup directory.

docker docs - volumes

Database volume backup without stopping the service: bash into the container, dump it, and copy it out with docker cp. Run it periodically via crontab

[–] easeKItMAn 2 points 2 years ago (1 children)

Simple, lightweight: raneto

[–] easeKItMAn 2 points 2 years ago

Indeed. Didn’t realize it until you brought it up. Thanks!

[–] easeKItMAn 5 points 2 years ago (3 children)
[–] easeKItMAn 6 points 2 years ago* (last edited 2 years ago)

Define which data is from value. I got 68TB of data but realistically only 3 TB are from such value I maintain several copies (Raspi + SSD) and online backup. The rest of data is stored on a cheap server built at a family member and synchronized twice a year. Make sure your systems and drives are all encrypted. And test your backups and redeployment strategy.

Edited: typo

[–] easeKItMAn 4 points 2 years ago

If your data is such valuable, I’m sure you took the time to setup a complete encrypted system (LUKS).

[–] easeKItMAn 2 points 2 years ago

Absolutely loving the Leaving home automation: Turn off all sockets, lights, set up intruder alarm, start simulating occupancy on random times. And vice versa when I come home but lights adjusted to light/weather/daytime conditions No-brainer and utmost convenient.

Some more automations:

  • Start movie: change sound source amplifier, adjust volume, turns off all other music sources and lights in the apartment, turn off motion sensor living room, dimm lights depending on light sensor/daytime and enjoy
  • Add to playlist: notify to m3u file, check m3u file for duplicates via shell script, amend file location of each line in m3u file and transfer to other server instance
  • “Siri good night” triggers all lights off + TV. Upon iOS event trigger and all lights/TV off, run Kodi library update/clean up, CHMOD movie file location and shut down server, turn off unnecessary sockets, switch to night mode (only specific motion sensors react and turn on low level light)
[–] easeKItMAn 1 points 2 years ago

Can relate to the approach. Keeping host barebones and everything dockerized + data volumes hosted separately will ease maintanance. For rapid redeployment a custom script will set up firewall/fail2ban/SSH/smartCTL/crontab/docker/docker-compose and finally load from another instance backups of all docker images. Complete setup from scratch takes 10-15 minutes. Tried Ansible but ended up custom scripting.

All my data is stored offsite twice a year. Data from high value is stored on a SSD as data volume and 2 other SSD’s as encrypted TAR + AWS S3. Rotation daily/weekly.

[–] easeKItMAn 2 points 2 years ago

Haha, same service, same reason it was removed. The tool works well but we all have different habits. Just didn’t suit my work style.

view more: ‹ prev next ›