DiscountASP.NET Forums                  

Go Back   DiscountASP.NET Forums > Services > DiscountASP.NET API

Notices

DiscountASP.NET API Did you know that we are the *only* host that has a Control Panel API that's open to users?

Closed Thread
 
Thread Tools Search this Thread
Old 03-17-2009, 11:13 AM   #1
krmzbbr
 
Join Date: Oct 2007
Posts: 3
SQL Database Backup Application (Command Line) UPDATED

Database Backup Tool Sample Application
Hello,

I created an application to create scheduled backups of SQL 2005 databases.

UPDATE:I basically recreated the whole application:

UPDATE 2:Updated to work with the latest API. Also, file is downloaded through ftp now ("_database" folder is not accessible through http i think)

-It connects to your site and checks for an existing backup. If a backup exists, checks the timestamp on the file and if it's current, it downloads the backup. If it's old backup it deletes the backup. (Backup call doesn't work if you already have backup in your root folder)
-Request an sync backup request using the API
-Connects to your site and downloads the backup and saves it with a date stamp (ie 10_24_2007_SQL2005_XXXXXX_XXXX.bak).
-It also supports logging now.

All you need to do is to put the API key, database name, domain name, ftp user name and ftp password in config file. Make sure that you don't run this application too often, you can only create backups every 6 hours.

Configuration details:

<add key='ApiKey' value='ApiKey' /> // Your Api key - required
<add key='DatabaseName' value='DatabaseName' /> // Database name - required
<add key='Domain' value='mydomain.com' /> // Domain name - required, (do not use www or ftp)
<add key='FtpUsername' value='FtpUsername' /> // Ftp user name - required
<add key='FtpPassword' value='FtpPassword' /> // Ftp password - required
<add key='BackupLocation' value='C:\Backup\' />// Backup location - optional

Source code is also attached.

Application - desertrose.net/downloads/DiscountAspSqlBackup_Exe.zip
Application & Source - desertrose.net/downloads/DiscountAspSqlBackup_Source.zip


Emre
krmzbbr is offline  
Old 03-17-2009, 11:16 AM   #2
bruce
DiscountASP.NET Staff
 
Join Date: Jan 2003
Posts: 6,501
very cool... thanks.
__________________
Bruce

DiscountASP.NET
bruce is offline  
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Backup Tool Sample Application krmzbbr DiscountASP.NET API 13 03-17-2009 11:15 AM
Sql Server Database doesn't updated Abu_Solyman ASP.NET 2.0 2 10-16-2008 08:05 AM
Perl Command Line within ASP.NET homeacademy ASP.NET 3 12-05-2003 12:19 PM
Database Backup Ken Databases 4 08-23-2003 10:23 AM
Compiling a Class File from the Command Line davidseye WebMatrix 1 05-03-2003 12:30 PM


All times are GMT -7. The time now is 11:09 AM.


vBulletin ©Jelsoft Enterprises Ltd.