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

Include all sub-directories except one #14

Open
Paul-Reed opened this issue Jul 19, 2022 · 0 comments
Open

Include all sub-directories except one #14

Paul-Reed opened this issue Jul 19, 2022 · 0 comments

Comments

@Paul-Reed
Copy link

Hi, I'm using DSM to regularly backup my .node-red directory, and so far I've listed the files/directories individually, i.e;

"zip": [
            "var pre = ' ' + sm.udir;",
            "var cmd = 'zip -r';",
            "cmd += pre + 'node-red.zip';",
            "cmd += pre + 'flows*.json';",
            "cmd += pre + '.config*.json';",
            "cmd += pre + 'settings.js';",
            "cmd += pre + 'package.json';",
            "cmd += pre + 'package-lock.json';",
            "cmd += pre + 'context/*';",
            "cmd += pre + 'certs/*';",
            "cmd += pre + 'lib/*';",
            "cmd += pre + 'clarify-db/*';",

but more & more data is being stored in the .node-red 'user' directory, so would like to ask if it would be possible to backup the entire .node-red directory, EXCEPT the node_modules sub directory (which is currently 350Mb in size).
I don't want to include the node_modules sub-directory because of it's size, it causes a "RangeError: stdout maxBuffer length exceeded" error.

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