overlayfs-tools icon indicating copy to clipboard operation
overlayfs-tools copied to clipboard

Looking for rebuild function / option

Open CyrilCanovas opened this issue 9 years ago • 2 comments

Hi,

I'm looking for a rebuild function that rebuild a combined dir ready to use with a high dir (with updated files and dirs) with low dir and a script. typically i want to backup a low and high dir and i want to restore a ready to use combined dir with special char device file regenerated.

CyrilCanovas avatar Mar 07 '16 12:03 CyrilCanovas

I guess recursively copying the mounted OverlayFS will give you a "ready to use combined dir" (although I'm not quite sure that will happen to special char files). Am I right?

kmxz avatar Mar 07 '16 16:03 kmxz

I'm already develop few things (based on your sources)

First, something that allow to specify script filename. (it is done already).

Second, i want to create a script like your merge function, i named that func. combine. It takes lower dir + upper dir and it makes combined dir in target relative destination dir (without using mounted overlayfs folder and without changing anything in upper and lower dir). It is made to deploy an overlayfs on systems that don't support that and also i can store that on something like github or gitbucket. For example, actually i have a project with a common webcore and 3 web sites (based on same webcore).

I want to combine

/common webcore+/web1 /common webcore+/web2 /common webcore+/web3

x3 mount overlayfs provide -> 3 websites

All the websites can be updated separately and i want to keep a webcore. I want to use only one branch in bitbucket for those 3 websites.

So the first, thing i want to git that.That's mean if i delete my overlayfs on my system, i want to "rehydrate" my overlayfs from the bitbucket project.

Second, my webserver doesnt support overlayfs. so i want to deploy my 3 websites by something like git clone and run a script.

CyrilCanovas avatar Mar 07 '16 17:03 CyrilCanovas