proot icon indicating copy to clipboard operation
proot copied to clipboard

How can I back up proot rootfs using tar?

Open Root-voidX opened this issue 5 years ago • 2 comments
trafficstars

Hello,

I am using an ubuntu rootfs which was done using andronix scripts. I want to back my ubuntu install using tar. However from termux, tar throws an error saying it cannot access certain directories within the ubuntu-rootfs folder (namely /dev, /bin and /sbin). Is there anyway to back my rootfs up so I can copy them between devices?

Thanks

Root-voidX avatar Oct 13 '20 05:10 Root-voidX

Just requires fakeroot to access that, try proot -0 and now use tar.

kcubeterm avatar Oct 13 '20 07:10 kcubeterm

Sometimes rootfs contain directories readable by nobody (chmod 000, although root still can access them, proot -0 temporary chmods them so they can be accessed)

I think this can be fixed with following command (after that you should be able to use tar normally, although I haven't tested extensively if this won't cause breakage)

find . -type d -exec chmod u+rx {} \;

michalbednarski avatar Oct 17 '20 16:10 michalbednarski