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?

  • p_235615@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months 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