Re: delete recursivly subvolumes?

Ulli Horlacher
2019-07-05T19:47:24Z

On Fri 2019-07-05 (21:39), Ulli Horlacher wrote:

> Is there a command/script/whatever to remove subvolume which contains
> (somewhere) other subvolumes?

ADONN QUESTION! :-)

Is there a command/script/whatever to snapshot (copy) a subvolume which
contains (somewhere) other subvolumes?

Example:

root@xerus:/test# btrfs_subvolume_list /test/ | grep /tmp
/test/tmp
/test/tmp/xx/ss1
/test/tmp/xx/ss2
/test/tmp/xx/ss3

I want to have (with one command):

/test/tmp --> /test/tmp2
/test/tmp/xx/ss1 --> /test/tmp2/xx/ss1
/test/tmp/xx/ss2 --> /test/tmp2/xx/ss2
/test/tmp/xx/ss3 --> /test/tmp2/xx/ss3

--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/
REF:<20190705193945.GB23600@tik.uni-stuttgart.de>