cupcakearmy / autorestic

Config driven, easy backup cli for restic.

Home Page:https://autorestic.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`--lean` Flag Still Outputs "an instance is already running. exiting"

AndrewPaglusch opened this issue · comments

Should the --lean flag perhaps silence the "an instance is already running. exiting" output? I'm running the following in cron, and I'm getting tons of logs that just say "an instance is already running. exiting"

My cron job

*/5 * * * * /usr/local/bin/autorestic cron --ci --lean -c /opt/autorestic.yml >> /var/log/restic/restic_$(date +\%Y\%m\%d\%H\%M\%S).log 2>&1

I thought the message might be coming out on stderr, so I tried discarding that, but it looks like it's coming out on stdout:

$ /usr/local/bin/autorestic cron --ci --lean -c /opt/autorestic.yml 2>/dev/null
an instance is already running. exiting

The relevant area of code responsible for this message:

colors.Error.Println("an instance is already running. exiting")