Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looking for rebuild function / option #2

Open
CyrilCanovas opened this issue Mar 7, 2016 · 2 comments
Open

Looking for rebuild function / option #2

CyrilCanovas opened this issue Mar 7, 2016 · 2 comments

Comments

@CyrilCanovas
Copy link

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 CyrilCanovas changed the title Looking for rebuild function Looking for rebuild function / option Mar 7, 2016
@kmxz
Copy link
Owner

kmxz commented Mar 7, 2016

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?

@CyrilCanovas
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants