• 0 Posts
  • 11 Comments
Joined 2 years ago
cake
Cake day: June 30th, 2023

help-circle
  • Instead of using systemd user services you can just use a normal systemd service and tell it to run the command as a specific user, put something like this in a file at /etc/systemd/system/<unit Name>.service

    [Unit]
    Description=Run service as user test
    After=network.target
    
    [Service]
    Type=simple
    User=test
    Group=test
    ExecStart=/opt/teamspoke
    
    [Install]
    WantedBy=default.target
    

    Then set it to start at boot

    systemctl enable <unit Name>.service
    

    And to start it now

    systemctl start <unit Name>.service
    




    • Maintain three (3) copies of your data: This includes the original data and at least two copies.
    • Use two (2) different types of media for storage: Store your data on two distinct forms of media to enhance redundancy.
    • Keep at least one (1) copy off-site: To ensure data safety, have one backup copy stored in an off-site location, separate from your primary data and on-site backups.

    You have 3 copies, one on your phone and nvme, one on the backup nvme and one in the cloud. You have 2 media, internal SSD and cloud (your phone would count as a third if it wasn’t auto synced) You have 1 off-site in the cloud







  • I have rss feeds for my main service updates so I know what new features I have, the services mostly run in podman containers and update automatically each Monday. I also have daily backups (timed to run just before the update on monday) in case anything does break.

    If it breaks I fix it depending on how much I want/need it, mostly it’s a matter of half an hour to fix it and with my current NixOS/Podman system I haven’t yet needed to fix anything this year so it breaks infrequently.

    Also why are you using Kubernetes on a single host if you want minimal maintenance? XD

    My recommendation is to switch to just managing containers, you should just be able to export the volumes out of kubernetes and import them as normal volumes, as long as they’re mounted in the right place you keep your data and if it doesn’t work just try again. Not like you need to destroy the current system to slowly replace it.

    Edit: I also recommend to update and reboot frequently, this stops updates and unstable configurations from piling up.