Skip to content

Adjustments to ease scripted 'automatic' backup #1119

@eren-rudy

Description

@eren-rudy

Is your feature request related to a problem? Please describe.
I am trying to set up "automatic"/"part-db supported" (as per instructions here) using cron to make them automatically recurring, but I am running into one of 2 problems:

  1. Running sudo -u www-data php bin/console partdb:backup gives me the following permission issue:
Image

I am able to create files and directories as www-data to my backup directory, so maybe the parent process that is making this fopen() call isn't running as www-data? I've granted rwx permissions for the backup directory to user/group/other. Maybe this could be considered a bug by itself? Or quite possibly it could be user error as I am not an export on this stuff.

  1. Trying to workaround this by running as root: sudo php bin/console partdb:backup gives me the dialog asking me to confirm that I want to continue given the risk of causing permission problems. I don't really want to have to deal with automating a script that has to parse the output of the backup program... I tried running with the --no-interaction flag, but it just causes the backup to abort.

Describe the solution you'd like
It would be nice if there was an easy way to schedule recurring automatic (Part DB supported) backups.

Describe alternatives you've considered
Writing, this it looks like I can probably do what I need by automating the 'manual' backup process, so apologies if this is superfluous. I thought I might post anyways in case it's desired to simplify this somehow, or there is some obvious workaround I am missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions