digint / btrbk

Tool for creating snapshots and remote backups of btrfs subvolumes
https://digint.ch/btrbk/
GNU General Public License v3.0
1.64k stars 120 forks source link

[Bug] Command execution failed (Argument list too long) #481

Closed Wunderharke closed 2 years ago

Wunderharke commented 2 years ago

I had an error in my configuration, which is why no snapshots were deleted for a long time. When I ran btrbk, and it tried to delete a large number of subvolumes, I got the btrfs subvolume delete error: Command execution failed (Argument list too long) following ERROR: Failed to match error messages from delete command, assuming nothing deleted from btrbk.

I then had to delete some of the subvolumes manually. Unfortunately, I cannot give any exact information about the number of volumes, but the command that was to be executed had over 130 thousand characters.

I consider this a bug and suggest splitting the commands after a maximum number of volumes, even within a single target.

zatricky commented 2 years ago

Dup of #476 I think where I had the same problem.

Is this on a 64bit or 32bit system? The system-default limits are supposed to be different between the two.

digint commented 2 years ago

duplicate, closing issue