Is it possible to backup and restore a configfs subsystem in userspace?

From: linux
Date: Tue Jun 28 2022 - 15:15:53 EST


Hi!

If I create a configfs subsystem with some items and attributes in
there, is it possible to backup and restore them in user space?

My first experiments say no:

- rsync: read errors mapping "/sys/kernel/config/my/item": No data
available
- tar: short read
- cp: skipping file '/sys/kernel/config/my/item', as it was replaced
while being copied

But maybe I miss something here?

Cheers!
Lars