backup

How to take Back up of LocalDB C# my database file name is MyDatabase.mdf

蹲街弑〆低调 提交于 2019-12-25 05:21:58
问题 string dbpath= System.Windows.Forms.Application.StartupPath; string dbp = dbpath + "\\MyDatabase.Mdf"; SqlCommand cmd = new SqlCommand("backup database ['"+dbp+"'] to disk ='d:\\svBackUp1.bak' with init,stats=10",con); cmd.ExecuteNonQuery(); 回答1: Error was that "The identifier start with---- is too long. Maximum length is 128" so I Make the "MyDatabase.mdf" with small Name "MyDb.mdf".So the identifier becomes less than 128. My code is SqlConnection con = new SqlConnection(ConfigurationManager

Error after restoring TFS database to new hardware

末鹿安然 提交于 2019-12-25 02:01:03
问题 I am using TFS 2012. I wanted to test how i can recover from server failure or any hardware failure, So i wanted to shift TFS to new PC. I followed some articles to restore it. what i did is 1)I had full backup of TFS_configuration and all other collection database.(backup taken using TFSbackup.exe) 2)In new PC i installed all the softwares(such as TFS 2012, sql server etc). 3)created all the windows user account as in old server. 4)When I checked the New PC it had default collection created

Change the TABLESPACE of the destination when restoring a database in Oracle 11g (Windows Server 2012 R2)

旧巷老猫 提交于 2019-12-25 01:48:53
问题 I was doing an import of a database (schema) from a previous version (Oracle 10g express editon) to a more recent version (Oracle 11g express edition) in Oracle from a .dmp file (I did not export, I was only responsible for make the import into the new environment) , the way to do it I consulted in a previous forum and I managed to import using imp , I could not use the impdp because the export was not done with the expdp . Well, once the restoration was done what I needed most was to restore

SQL Server 2008 Auto Backup

孤街浪徒 提交于 2019-12-24 22:56:17
问题 We want to have our test servers databases updated from our production server databases on a nightly basis to ensure we're developing on the most recent data. We, however, want to ensure that any fn, sp, etc that we're currently working on in the development environment doesn't get overwritten by the backup process. What we were thinking of doing was having a prebackup program that saves objects selected by our developers and a postbackup program to add them back in after the backup process

fetch Azure 'Files and folders' Job status using Powershell or C#

人盡茶涼 提交于 2019-12-24 19:44:26
问题 I have been trying to find a way to fetch the status of 'Files and folders' backup jobs that has been run on several of our customers running in AzureRM. Status can be found using manually in the AzureRm portal from: 'Recovery Services vault' -> Jobs -> 'Backup Jobs' using powershell does not show any Job information Get-AzureRmRecoveryServicesVault | Set-AzureRmRecoveryServicesVaultContext Get-AzureRmRecoveryServicesBackupContainer -ContainerType Windows -BackupManagementType MARS |fl Get

use rpm -V against backed-up database

二次信任 提交于 2019-12-24 17:46:03
问题 rpm(1) provides a -V option to verify installed files against the installation database, which can be used to detect modified or missing files. This might be used as a form of intrusion detection (or at least part of an audit). However, it is of course possible that the rpm database installed may be modified by a hacker to hide their tracks (see http://www.sans.org/security-resources/idfaq/rpm.php, last sentence) It looks like it should be possible to back up the rpm database /var/lib/rpm

Restoring an old MySQL backup

不想你离开。 提交于 2019-12-24 12:16:45
问题 I have a large file from 2007 containing a backup (as a SQL Script) of a MySQL Database. It's for an unknown version of MediaWiki. -- phpMyAdmin SQL Dump -- version 2.6.2-Debian-3sarge3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 29, 2007 at 12:42 PM -- Server version: 4.0.24 -- PHP Version: 4.3.10-19 I've tried installing mysql-5.5.8-win32 and mysql-workbench-gpl-5.2.31a-win32 but am getting syntax errors. Is there an easy way of making the old script

Backup MySQL schema with foreign key table constraints

 ̄綄美尐妖づ 提交于 2019-12-24 08:57:29
问题 I created my MySQL schema that consists of multiple tables and I decided that I would add the foreign key constraints afterwards for each table, using the command: ALTER TABLE Orders ADD FOREIGN KEY (P_Id) REFERENCES Persons(P_Id) How can I get a backup of the schema (containing the foreign keys) so that I can duplicate it in another machine? Note that SHOW CREATE TABLE and mysqldump do not work in my case because they only create a UNIQUE KEY constraint and not a FOREIGN KEY. 回答1: mysqldump

Scheduling jobs on windows

℡╲_俬逩灬. 提交于 2019-12-24 08:47:37
问题 What is the best way of scheduling simple batch jobs on windows? My current need is to dump some SVN repositories each night and FTP the dumps to our external FTP side and then e-mail one or more people that the backup has completed/failed. This sounds like the sort of thing I would usually do in a unix script + cron. Is that possible on windows? Perhaps using Cygwin? 回答1: Windows Scheduled Tasks. This area is available through the control panel and may require administrative rights. It's

Nexus Repository 3 backup

心已入冬 提交于 2019-12-24 07:26:13
问题 Recently I installed Nexus Repository 3 in OpenStack Cloud and I am using it for a while now. I would like to perform incremental backup of Nexus and thus securing our data. How can one perform incremental backups of nexus data? 回答1: The procedure for Nexus backup is described in documentation. Nexus provides the scheduled task Export configuration & metadata for backup out of the box. However this task takes care only of backing up the underlaying Orient DB. You must still assure that you