SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Daily backup template

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Daily backup template
Author Message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Daily backup template Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7833

Post Reply with quote
It looks like jar.exe is not in the system search path. Try changing the command to the following

Code:
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 View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
I get the same error but now it shows the full path of jar..
Wed Jun 22, 2016 4:52 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7833

Post Reply with quote
Does the referenced backup folder exist?
Wed Jun 22, 2016 6:04 pm View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
Yes, it exists
Thu Jun 23, 2016 11:39 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7833

Post Reply with quote
Does that work when you run the same command manually from DOS console?
Thu Jun 23, 2016 11:42 am View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7833

Post Reply with quote
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 View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.