 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
Daily backup template |
|
I used the template to try an make a job for daily backups.
When I exectue the job I get:
unable to execute "jar cvfM "c:\24x7\backups\24x7-backup-@t"dd-mmm-yyyy".zip" *.dat preferences.xml
What do I need to do to get this working?
Thank you
|
|
Wed Jun 22, 2016 8:46 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
It looks like jar.exe is not in the system search path. Try changing the command to the following
 |
 |
C:\24x7\jre\bin\jar cvfM "c:\24x7\backups\24x7-backup-@t"dd-mmm-yyyy".zip" *.dat preferences.xml |
|
|
Wed Jun 22, 2016 9:58 am |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
I get the same error but now it shows the full path of jar..
|
|
Wed Jun 22, 2016 4:52 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Does the referenced backup folder exist?
|
|
Wed Jun 22, 2016 6:04 pm |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
Yes, it exists
|
|
Thu Jun 23, 2016 11:39 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Does that work when you run the same command manually from DOS console?
|
|
Thu Jun 23, 2016 11:42 am |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
When I try to run it from a command prompt, I get 'C:\24x7\jre\bin\jar' is not recognized as an internal or external command, operable program or batch file.
C:\24x7\jre\bin\jar cvfM "c:\24x7\backups\24x7-backup-@t"dd-mmm-yyyy".zip" *.dat preferences.xml
|
|
Thu Jun 23, 2016 11:47 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Please search your computer for jar.exe file. In the command replace C:\24x7\jre\bin\jar' with the path where you find it.
|
|
Thu Jun 23, 2016 8:30 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|