Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil.
-
No spam.
-
Posts are to be related to self-hosting.
-
Don't duplicate the full text of your blog or readme if you're providing a link.
-
Submission headline should match the article title.
-
No trolling.
-
Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.
-
AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
view the rest of the comments
My recommendation is to put all of the variables in an environment file, and use systemd's
EnvironmentFile(in[Service]to point to it.One of my backup service files (I back up to disks and cloud) looks like this:
FILESis a file containing files and directories to be backed up, and is defined in the environment file; so isEXCLUDES, but you could simply point restic at the directory you want to back up instead.My environment file looks essentially like
If you're having trouble, start by looking at how you're passing in the password, and whether it's quoted properly. It's been a couple of years since I had this issue, but at one point I know I had spaces in a passphrase and had quoted the variable, and the quotes were getting passed in verbatim.
My VPS backups are more complex and get their passwords from a keystore, but for my desktop I keep it simple.
Seconding this answer. The error message and description scream envvar issue.
@gedaliyah@lemmy.world Did you run a
systemctl daemon-reloadafter making the PassEnvironment change to your service file?Yes, I've been running the two commands one after the other. I'm assuming that daemon-reload reloads the files into memory or whatever?