Hello, everyone,
by mistake I deleted a script from Aris Cloud (Advanced).
Is there a way to recover it?
Is it possible to make a scheduled backup of all the scripts?
Thank you
Marco
Hello, everyone,
by mistake I deleted a script from Aris Cloud (Advanced).
Is there a way to recover it?
Is it possible to make a scheduled backup of all the scripts?
Thank you
Marco
Hi Ariene, thanks for posting this. We've recently lost a number of scripts when a Group in our Evaluations Group was deleted by accident, so I'm very interested in getting this script to work for us.
I've replaced the file location that you had on the first line with my own file details to allow the script to build the new file structure and save the content on my work's laptop.
I'm not too sure where I should be running the script from though - I've set the context for the script as Database and Groups. When I manually run the script from a Database or Folder I get the dialogue pop ups but its not actually creating anything.
What am I missing?
BR, Darren
The folder that must be defined in the first line of the script, must be a (shared) folder that can be accessed by the user account that runs the ARIS server and maybe by you.
Regards, Ariene
Hello Ariene,
your script is a great contribution.
You use a function fsNow("yyyy/MM/dd HH:mm:ss") to append a date to lsFileName2Return. This does not seem to be declared in the script, but elsewhere.
Is the definition of var msPath = "E:/ids-scheer/_Solutions/__BackupScripts/" with forward slashes also necessary on Windows?
Kind regards, Martin
Hi, we are behind the curve; 9.8.4 - hoping we can move to 10.8 early next year though!
function fsNow(psFormat){ var lsNow2Return = "" var ldDate=new java.util.Date(); var lsFormat = fValueIfMissing(psFormat,"yyyy/MM/dd HH:mm:ss"); if (lsFormat=="")lsFormat = "yyyy/MM/dd HH:mm:ss"; var lDateFormat = java.text.SimpleDateFormat(lsFormat); lsNow2Return=lDateFormat.format(ldDate); return lsNow2Return; } function fIsMissing(pOptionalPar){ var lbIsMissing2Return = false; if (pOptionalPar==undefined || pOptionalPar ==null){ lbIsMissing2Return = true; } return lbIsMissing2Return; } function fValueIfMissing(pOptional,pDefault){ return (fIsMissing(pOptional) ? pDefault: pOptional) }
Ariene Kroeze on