- Joined
- Jun 7, 2009
- Messages
- 543
- Reaction score
- 222
I've been trying to create a .sh script to create automatic back ups on the server database via pwAdmin. Unfortunately the way that I tried doesn't work for me. I was wondering does anyone know of a viable solution to creating automatic back ups.
This is what I used to attempt to create an autmatic back up using pwAdmin
I then added the .sh file to crontab to run everyday at midnight server time. I know that it is problematic to run a back up while a server is running as I read in another post that it will have inconsistent data and the best way to do it is while the server is offline.
Could the reason it is not working be because I am using index.jsp to run the back up instead of serverctrl.jsp? Would the script work if I change it to:
Edit: Just tested this and this doesn't work either.
This is what I used to attempt to create an autmatic back up using pwAdmin
Code:
#!/bin/sh
wget http://127.0.0.1:8443/pwAdmin/index.jsp?page=serverctrl&process=backup
rm *jsp*
I then added the .sh file to crontab to run everyday at midnight server time. I know that it is problematic to run a back up while a server is running as I read in another post that it will have inconsistent data and the best way to do it is while the server is offline.
Could the reason it is not working be because I am using index.jsp to run the back up instead of serverctrl.jsp? Would the script work if I change it to:
Code:
#!/bin/sh
wget http://127.0.0.1:8443/pwAdmin/serverctrl.jsp?process=backup
rm *jsp*
Edit: Just tested this and this doesn't work either.
Last edited: