[opencms-dev] Generating Custom Strings in openCMS Shell
Mario Jäger
m.jaeger at alkacon.com
Wed Dec 22 10:10:56 CET 2010
Hello Stephen,
You make the backup using a cron job. I assume, that the cron job calls
a batch file and that batch file opens the CmsShell and calls the backup
command then, right? In this case, you can use the linux shell "date"
command to create the export file name in your batch file. I assume,
that you use the CmsShell command exportResources(String exportFile,
String pathList) to make a backup.(?)
--
Kind Regards,
Mario.
-------------------
Mario Jäger
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
Am 16.12.2010 14:40, schrieb Stephen S. Musoke:
> Hello,
>
> I am trying to backup an openCMS site from the shell using a cron job.
> I have been able to set it up, however I am not able to change the
> name of the backup file.
>
> How can I setup/generate custom strings or integers in the openCMS
> shell maybe a timestamp, a date etc
>
> Thank you
>
> Stephen
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list