Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btrfs-sxbackup requires (but does not document) "ionice" on the target #67

Open
larsks opened this issue Jun 27, 2021 · 1 comment
Open

Comments

@larsks
Copy link

larsks commented Jun 27, 2021

I tried using btrfs-sxbackup to back up to a Synology diskstation device, but the command fails with:

ERROR source :: Command ['ssh', '-o', 'ServerAliveInterval=5', '-o', 'ServerAliveCountMax=3', 'backup@btrfs', 'ionice -c3 btrfs receive "/volume1/backups/madhatter/home/"'] failed with error code 127 (bash: ionice: command not found)

This was a surprise, because the README only says:

The following packages have to be available on both source and destination

  • bash
  • btrfs-progs

It would be nice if sxbackup would not use ionice by default; if folks want to run btrfs receive using ionice, they can use an ssh forced command to modify the btrfs receive command line.

@masc3d
Copy link
Owner

masc3d commented Jun 28, 2021

yes, README does not include standard packages like util-linux or coreutils which are provided by most distros.
in the past it has been seen that omitting ionice can cause heavy io stalling for other processes during backup.

I don't have synology to test this, as similar other problems could be expected down the road with a heavily modified distro like this. but you could fork your own version and modify it accordingly.

I would accept PR for this, when implemented properly (ionice should remain the default with an option to disable it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants