cross-posted from: https://lemmy.ml/post/54692477

i’m setting up plakar as a backup tool and i wanted to use some systemd service and timer files to trigger the backups automatically. the issue is that doing so requires the plakar passhprase. what is the best way to handle this? because the best options seem to require interactivity and i need a non interactive solution. is the standard solution to simply let the passphrase as a plaintext or what?

  • ghost_laptop@lemmy.mlOP
    link
    fedilink
    arrow-up
    2
    ·
    20 days ago

    it’s a new tool, it’s similar to restic which is a bit older i think. i just think it’s a bit odd, keeping a secret in plain text. would using something like tpm to store the credential be a bit overkill? i’m not an expert so i don’t fully understand how it works but i think this way i could backup non-interactively and the key would only be in plaintext for some time in tmpfs while plakar does the back up. or is this dumb?

    • adr1an@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      20 days ago

      I just pass env files to containers, don’t know if I could be doing it anything more robust or safe. I did encrypt the partition though.

      • ghost_laptop@lemmy.mlOP
        link
        fedilink
        arrow-up
        1
        ·
        20 days ago

        yeah, i do the same and it’s a very similar situation now that you mention it. although you could say that maybe some containers don’t hold information that’s very critical or something sometimes. also since you could backup the container with plakar it could be considered a higher security concern i guess? i also have my partition encrypted.

      • Ooops@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        20 days ago

        Which is what Plakar suggests, too, as their cli tool reads the PLAKAR_PASSPHRASE environmental variable.