database-backups

back up and restore mysql database c#

两盒软妹~` 提交于 2019-12-13 15:47:27
问题 I am looking for a way how I can via c# back up some database from mysql (file backup). And also via c# restore database from backup file to some new location. Can you help me with some ideas how to get started here . Thanks. 回答1: ProcessStartInfo startInfo = new ProcessStartInfo("cmd.exe"); Process.Start(startInfo); startInfo.Arguments = "mysqldump -u admin -p admin test > c:\backupfile.sql"; Process.Start(startInfo); You can hide the dos prompt with startInfo.WindowStyle if you need. 回答2:

Backup localDB database in ClickOnce

久未见 提交于 2019-12-13 07:19:37
问题 I've created a WPF 4.5 .NET application it with a database backup feature. The functions and the backup works fine when debugging but when I publish it in ClickOnce and install it in target machine everything works except the backup won't work because ClickOnce obfuscate the app folder location so it becomes too long for the backup statement to work! Is there a way to make the backup statement shorter? here's my code and the error I get: code: SaveFileDialog sfd = new SaveFileDialog(); string

Create / Edit / Retrieve DB file with GDAA (Google Drive Api for Android)

a 夏天 提交于 2019-12-13 01:18:36
问题 skilled friends. Could you someone help me with my problem, please? I'm trying to use GDAA (Google Drive API for Android = https://developers.google.com/drive/android/appfolder) for backup and restore my DB file. Not REST API. I tried use their demo classes from here: https://github.com/googledrive/android-demos/, but no positive result. I suceed with authentication and with save my DB file into App Folder in Google Drive, but I can not edit or retrieve this file. I only still create new and

sqlite3 shell command '.backup' and transaction

大城市里の小女人 提交于 2019-12-12 10:44:20
问题 I have sqlite database on my local host (Win NT) and want to back it up. I want to use shell command '.backup' to accomplish this task. But it seems I can insert a new rows into database during backup process. Does '.backup' shell command starts new exclusive transaction on my database? I thought when I execute '.backup' shell command it locks my database. 回答1: The sqlite3 backup method does not lock the database. I would suggest to use the following workaround if you would like to lock the

SQL Server Partial Database Backup (excluding some tables)

扶醉桌前 提交于 2019-12-12 09:39:49
问题 I'm managing a reasonably large SQL Server database. Some tables contain data that are business-critical and must be backed up offsite daily. But we also have other (read-write) tables that take up about half the size of the database that aren't business-critical. What I would like to do is something like this: Primary filegroup: Tables A, B, C --> daily backup Secondary filegroup: Tables D, E, F --> monthly (or occasional manual) backup When I tried to test this, I got errors while trying to

How do I do incremental backups for SQLite?

旧时模样 提交于 2019-12-12 08:53:54
问题 I have a program that saves logging data to an SQLite3 database. I would like to back up the database while the program is still running. I have accomplished this by using the SQLite Online Backup API (http://www.sqlite.org/backup.html) and it works fine, however it lags the process until the backup is complete... Does anyone know of a way to do incremental backups in SQLite? I would preferably only backup new data, not the entire database each time I run the backup. 回答1: I don't think there

How to do automatic mysql db backup using mysql workbench

一曲冷凌霜 提交于 2019-12-12 08:13:14
问题 How to do automatic mysql db backup using mysql workbench? Is it possible? 回答1: If you have a webserver with PHP I'd suggest MySqlDumper It supports: Automatic backups Emails backups Compresses backups Rotates backups etc. 回答2: Mysql bench is not required for automatic backup, setup a crontab and use mysqldump (or equivalent) will do the same job and is easier. example: crontab -e /* backup every day at 00:00:00 */ 0 0 * * * mysqldump -u root -ppassword YOUR_DATABASE > /backup/YOUR_DATABASE

Backup ACCESS Database using PHP script

安稳与你 提交于 2019-12-12 05:49:17
问题 Is it possible to back up an access database ? I have done research on how to backup access database through php but I wasnt able to get a good answer. Most of the result that came out is about backing up MySQL database . Can anyone help me :) thanks 回答1: re: actually performing the backup Backing up a native Access database is simply a matter of copying the entire database file (.mdb for Access_2003 and earlier, .accdb for Access_2007 and later). You could use PHP for that, but any scripting

PostgreSQL: Automated Backup in Windows

ε祈祈猫儿з 提交于 2019-12-12 04:34:44
问题 I'm trying to create an automated backup in Postgresql using below link, but I don't know where to find the needed dll, I'm stuck here. Can't proceed to next instruction because of this. Can anyone knows how to do it? Need help please. https://wiki.postgresql.org/wiki/Automated_Backup_on_Windows comerr32.dll gssapi32.dll k5sprt32.dll krb_32.dll libeay32.dll libiconv2.dll libpq.dll Microsoft.VC80.CRT.manifest msvcm80.dll msvcp80.dll msvcr80.dll pg_dump.dll ssleay32.dll zlib1.dll Here's batch

SQL server Full backup job is skipping databases

我们两清 提交于 2019-12-12 02:48:43
问题 I have a monthly job running on my SQL server. It backups all the online databases to a location "\Backupserver\e$\MonthEndBackups\". Job runs the USP below like this: exec [usp_dba_BackupDatabases] 3 (http://screencast.com/t/l7IS5TZK) It runs on the last day of the month. Our databases were scattered around multiple servers and this job runs on those servers and this used to work. We consolidated all the database on the same server (same SQL instance) and this job does not seem to backup all