backup

I need to automate SQL Azure database backup in SQL Script files. How can i do so?

廉价感情. 提交于 2019-12-31 09:04:02
问题 Presently i am generating SQL scripts everyday to take the backup of SQL Azure database. I need to automate this process using some freeware. How can i achieve this? Note:- I need to take the backup in form of SQL Script to some local machine. 回答1: Option 1: Run some code/script to backup the database You could run the SQL using the SQLCMD utility. http://msdn.microsoft.com/en-us/library/ms162773.aspx To schedule this, just use the Windows Task Scheduler. http://msdn.microsoft.com/en-us

Is it possible to restore a Postgres database by simply swapping out some files for speed?

好久不见. 提交于 2019-12-31 05:28:09
问题 This is a general Postgres backup and restore method question, based on the following use case for a non production server (i.e. a local testing server). I have a ~20gb database that I will mangle during the testing of a php script that will result in the need to drop it and recreate it quite often. Running dumped SQL to restore it takes quite a lot of time, and I'm on a tight deadline, so I wondered if there was a method whereby I could speed up the process. I thought the following may work:

How to create SQL Server 2008 database full backup programmatically in desired folder

好久不见. 提交于 2019-12-30 10:04:24
问题 How to create SQL Server 2008 database full backup programmatically in desired folder with using Microsoft visual studio 2010 c# 回答1: Just execute SQL Server command BACKUP DATABASE database_name TO DISK='d:\path\to\backup\file\on\the\server.bak' 来源: https://stackoverflow.com/questions/4466428/how-to-create-sql-server-2008-database-full-backup-programmatically-in-desired-f

How to make tar backup using python

会有一股神秘感。 提交于 2019-12-30 07:05:10
问题 I have directory /home/user1 , user2 . I want to loop through all usernames home dir and then make the tar.gz file and then store it in /backups directory. I am new to python so confused how to start 回答1: This should work: import os import tarfile home = '/home/' backup_dir = '/backup/' home_dirs = [ name for name in os.listdir(home) if os.path.isdir(os.path.join(home, name)) ] for directory in home_dirs: full_dir = os.path.join(home, directory) tar = tarfile.open(os.path.join(backup_dir,

How to make tar backup using python

蹲街弑〆低调 提交于 2019-12-30 07:05:07
问题 I have directory /home/user1 , user2 . I want to loop through all usernames home dir and then make the tar.gz file and then store it in /backups directory. I am new to python so confused how to start 回答1: This should work: import os import tarfile home = '/home/' backup_dir = '/backup/' home_dirs = [ name for name in os.listdir(home) if os.path.isdir(os.path.join(home, name)) ] for directory in home_dirs: full_dir = os.path.join(home, directory) tar = tarfile.open(os.path.join(backup_dir,

How to backup/restore SQLite database on Android to Dropbox

萝らか妹 提交于 2019-12-30 05:04:17
问题 I am currently developing an Android application which makes use of the SQLite database. I am looking for ideas how to backup/restore the database to and from external services such as Dropbox. I have gone through some explanations such as below: Android backup/restore: how to backup an internal database? Backup/restore sqlite db in android These explanation are mainly about backing up locally, but I want to backup to cloud, as I mentioned, something like Dropbox. Help please... Thanks in

When restoring a backup, how do I disconnect all active connections?

谁说我不能喝 提交于 2019-12-29 10:07:18
问题 My SQL Server 2005 doesn't restore a backup because of active connections. How can I force it? 回答1: SQL Server Management Studio 2005 When you right click on a database and click Tasks and then click Detach Database , it brings up a dialog with the active connections. By clicking on the hyperlink under "Messages" you can kill the active connections. You can then kill those connections without detaching the database. More information here. SQL Server Management Studio 2008 The interface has

Backing up (and restoring) a Plone instance

旧城冷巷雨未停 提交于 2019-12-29 09:19:41
问题 I have a Plone installation in my home directory under Linux. ~/Plone . This was made from a default distribution of Plone from its website. So Plone compiled own python and is bundeled with Zope. Please tell me, which files are necessary to backup if I want to: 1) Backup the whole data ever stored in my Plone instance; 2a) Restore the backed-up data in a same version of Plone, but located elsewhere. 2b) Restore the backed-up data in a (slightly) newer version of Plone. I thought, maybe it's

Is copying /var/lib/mysql a good alterntive to mysqldump?

◇◆丶佛笑我妖孽 提交于 2019-12-28 12:13:40
问题 Since I'm making a full backup of my entire debian system, I was thinking if having a copy of /var/lib/mysql directory is a viable alternative to dumping tables with mysqldump. are all informations needed contained in that directory? can single tables be imported in another mysql? can there be problems while restoring those files on a (probably slightly) different mysql server version? 回答1: Yes Yes if the table is using the MyISAM (default) engine. Not if it's using InnoDB. Probably not, and

How to parse the Manifest.mbdb file in an iOS 4.0 iTunes Backup

霸气de小男生 提交于 2019-12-28 03:15:15
问题 In iOS 4.0 Apple has redesigned the backup process. iTunes used to store a list of filenames associated with backup files in the Manifest.plist file, but in iOS 4.0 it has moved this information to a Manifest.mbdb You can see an example of this file by making a backup with your iOS 4.0 devices and looking in your ~/Library/Application Support/MobileSync/Backup folder (Look inside the subfolders with the most recent date) Here's a screenshot of what the file looks like in a text editor: