Skip to content

sxbackup uses pv when invoked by systemd timer. #60

@cobrafast

Description

@cobrafast

sxbackup seems to use pv whenever it finds it installed, even when not running on a shell.

When running from a systemd timer-service setup, this will add a lot of CPU overhead as pv seems to misbehave under such conditions and runs at 100% CPU usage (i.e. fully loads a single core by itself) and causes transfer speeds to tank.

In any case, using an interactive progress indicator like pv makes no sense for a timed background job.

I would suggest not using pv unless specifically requested via commandline. Alternatively some kind of autodetection if sxbackup is running in an interactive shell or not, if that can be done reliably.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions