Installation and deployment
Version 3.x > Installation and deployment > Automatic backup of specific website via scheduled task View modes: 
User avatar
Member
Member
a1ik-live - 12/17/2008 8:52:40 AM
   
Automatic backup of specific website via scheduled task
Hello,

is it possible to automate backup's of websites made in Kentico by using the scheduled task function?

Or is it possible to backup specific websites in another way?

Thanks in advance :-)

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/18/2008 5:50:58 AM
   
RE:Automatic backup of specific website via scheduled task
Hi,

You can create a scheduled task (http://www.kentico.com/docs/devguide/scheduling_a_custom_code.htm) which will run the backup query on the SQL server. Using google you can find more information about the backup query and all necessary parameters.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
a1ik-live - 12/18/2008 12:58:14 PM
   
RE:Automatic backup of specific website via scheduled task
Hello,

thanks for your reply. Yes, I figured that out already. But what I want is to backup specific websites (when you are running multiple websites on one single Kentico installation.

How do I do that? Because when I backup the whole database, and I want to restore just one website, from 10 that are on that installation, I would put all 10 websites back instead of just the broken one.

Thanks for your help :-).

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/19/2008 5:37:26 AM
   
RE:Automatic backup of specific website via scheduled task
Hi,

In this case you can create a scheduled task which will call the export of appropriate site, so you will have the site backup in export package.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
a1ik-live - 12/22/2008 5:07:11 AM
   
RE:Automatic backup of specific website via scheduled task
Hello Jurajo,

thanks for your reply (and sorry for my late reply). But, could you give me an example of that scheduled task? That would make things much easier for me!

Regards!

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 12/22/2008 5:14:09 AM
   
RE:Automatic backup of specific website via scheduled task
Hello,

please see here for a sample code: http://www.kentico.com/docs/devguide/import_and_export_of_the_web_s.htm

Best regards,
Helena Grulichova

User avatar
Member
Member
a1ik-live - 12/22/2008 5:39:18 AM
   
RE:Automatic backup of specific website via scheduled task
Thanks for all your effort so far!

But, I would like to see an exemple of such an scheduled task, because I think I'm doing it the wrong way.

If you could do that I would appreciate that very much!

Kindly regards.

User avatar
Member
Member
a1ik-live - 12/22/2008 5:39:19 AM
   
RE:Automatic backup of specific website via scheduled task
Thanks for all your effort so far!

But, I would like to see an exemple of such an scheduled task, because I think I'm doing it the wrong way.

If you could do that I would appreciate that very much!

Kindly regards.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 12/22/2008 6:06:44 AM
   
RE:Automatic backup of specific website via scheduled task
Hello,

unfortunately, we have not that sample code. Only the example of Scheduled task which Juraj posted and this one for an programmatical export of the site. You could combine them together so that you could develop such a custom functionality.

Best regards,
Helena Grulichova

User avatar
Member
Member
a1ik-live - 12/22/2008 6:33:08 AM
   
RE:Automatic backup of specific website via scheduled task
So, actually, you are telling me that there is no standard backup utility in Kentico for backing up multiple website's, except for making my own code from different sources or the whole DB (which is not so fine when you have to restore 1 website, if you host like 50 websites).

Is their really no alternative for this?

Thanks anyway for all your effort :).

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 12/22/2008 7:13:25 AM
   
RE:Automatic backup of specific website via scheduled task
Hello,

you are right.

Eventually, you could backup all database (and project folder if necessary).
If one site has a problem you will make the backup work outside the working application of Kentico CMS. You would choose your site, export it and then import the needful version into the working application.

Best regards,
Helena Grulichova