An enthusiastic web developer on the run – constantly hard-working to improve. Systems engineer, manager, beer lover, bibliophile. Founder of Abuelos Design.
Location
Bucharest, Romania
Education
Systems Engineer
Work
Full Stack Developer | People Manager | Entrepreneur
I always end up with this error: "Backup completed with status code: 1" (I know status 1 is a syntax error or usage). Even with your piece of code, copy/paste, I have the same result.
Verify the command on your terminal outside of the Node app to get more details. If you add console.log(cmd) inside the rsync.execute block it will print out exactly the syntax of the command that it is running in the background, so you can try running it manually.
You can also add the -v flag to get more verbose output to troubleshoot
So for example on the terminal the command using the directories from this tutorial would look like:
rsync -av example-source/ example-destination/
If you find the error and it turns out to be something others might encounter definitely let me know and I'll make an update.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I always end up with this error: "Backup completed with status code: 1" (I know status 1 is a syntax error or usage). Even with your piece of code, copy/paste, I have the same result.
Suggestions? 🙌
I found it helpful to see the rsync command:
Verify the command on your terminal outside of the Node app to get more details. If you add
console.log(cmd)
inside thersync.execute
block it will print out exactly the syntax of the command that it is running in the background, so you can try running it manually.You can also add the
-v
flag to get more verbose output to troubleshootSo for example on the terminal the command using the directories from this tutorial would look like:
If you find the error and it turns out to be something others might encounter definitely let me know and I'll make an update.