this post was submitted on 18 Oct 2023
1 points (100.0% liked)

Self-Hosted Main

504 readers
1 users here now

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.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

I've recently been trying to containerize as much as I can to make my self-hosted system portable by simply backing up my docker data folder.

One thing I'm struggling with is whether or not to containerize a few system crons that I use for maintenance (for example, using wget to update some files, and using chmod to make sure my file permissions remain on point).

What I'd like to avoid is having to manually backup my crontab. Maybe I'm overthinking it, but any advice one way or another? Should I bother? Any disadvantages? Any docker image folks would recommend aside from a base alpine image?

you are viewing a single comment's thread
view the rest of the comments
[–] p_235615@alien.top 1 points 1 year ago

I mean its 1 command to store your user crontab and 1 to restore it, so I would not over complicate it...

backup:

crontab -l -u root > /tmp/your-crontab-backup

and restore:

crontab /tmp/your-crontab-backup