SqlConnection baglanti = new SqlConnection(@”Data Source=192.168.2.11test;Network Library=DBMSSOCN;
Initial Catalog=EGITIM_01;User ID=xxx;Password=xxx;”);
        private void BaglantiAc()
        {
            baglanti.Open();
        }
        private void BaglantiKapat()
        {
            baglanti.Close();
        }
        public void backup()
        {
            BaglantiAc();
            string query = @”BACKUP DATABASE [EGITIM_01] TO  DISK = N’G:terstportEGITIM_01Database Backups\20150527_151139_EGITIM_01_v7.0.3.dat’ WITH NOFORMAT, NOINIT,  NAME = N’EGITIM_01-Full Database Backup’, SKIP, NOREWIND, NOUNLOAD,  STATS = 10″;
            SqlCommand cmd = new SqlCommand(query, baglanti);
            cmd.CommandTimeout = 12 * 60 * 3;
            //Create a data reader and Execute the command
            cmd.ExecuteNonQuery();
            BaglantiKapat();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            backup();
        }

Ramazan CESUR