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

Permit persist.conf to save and restore directories #10

Open
rallyemax opened this issue Jun 28, 2014 · 0 comments
Open

Permit persist.conf to save and restore directories #10

rallyemax opened this issue Jun 28, 2014 · 0 comments

Comments

@rallyemax
Copy link

Currently persist.sh is limited to saving and restoring files. I suggest modifying the script to permit it to save and restore directories in /etc as well. My specific need is to save and restore /etc/init.d and the files therein (I have some things I need to run at boot, including, for instance, crond).

This could be as simple as adding -R to the cp commands, though it might be worthwhile to add a -P flag to specifically preclude dereferencing symlinks (to avoid filesystem loops).

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

1 participant