backup

How to backup sqlite database?

时光总嘲笑我的痴心妄想 提交于 2019-11-27 10:43:15
What's the proper way to do it? Do I just copy the .sq3 file? What if there are users on the site and file is being written while it's being copied? Googie The sqlite3 command line tool features the .backup dot command . You can connect to your database with: sqlite3 my_database.sq3 and run the backup dot command with: .backup backup_file.sq3 Instead of the interactive connection to the database, you can also do the backup and close the connection afterwards with sqlite3 my_database.sq3 ".backup 'backup_file.sq3'" Either way the result is a copy named backup_file.sq3 of the database my

mysqldump with create database line

三世轮回 提交于 2019-11-27 10:42:56
问题 I'm in the process of moving my files onto another computer, and one thing I would like to do is to transfer the data in my MySQL database. I want to dump the databases into .sql files, but also have the create database db_name including in the file, that way I just have to import the file to mysql without having to manually create the databases. Is there a way to do that? 回答1: By default mysqldump always creates the CREATE DATABASE IF NOT EXISTS db_name; statement at the beginning of the

Web site backup in PHP?

a 夏天 提交于 2019-11-27 10:37:07
问题 Does anybody know a clean PHP-based solution that can backup remote web sites using FTP? Must haves: Recursive FTP backups Possible to run through a cron job Easy to configure (easy adding of multiple sites) Local storage of backup files is sufficient Would be nice: Backed up sites are stored as zip files A nice interface to manage things Provides notification when backup has succeeded or failed Does incremental backups Does MySQL Database backups I need this to be PHP based because it's

Cannot open backup device. Operating System error 5

笑着哭i 提交于 2019-11-27 10:35:00
Below is the query that I am using to backup (create a .bak ) my database. However, whenever I run it, I always get this error message: Msg 3201, Level 16, State 1, Line 1 Cannot open backup device 'C:\Users\Me\Desktop\Backup\MyDB.Bak'. Operating system error 5(Access is denied.). Msg 3013, Level 16, State 1, Line 1 BACKUP DATABASE is terminating abnormally. This is my query: BACKUP DATABASE AcinsoftDB TO DISK = 'C:\Users\Me\Desktop\Backup\MyDB.Bak' WITH FORMAT, MEDIANAME = 'C_SQLServerBackups', NAME = 'Full Backup of MyDB'; Thanks in advance. Robin Vessey Yeah I just scored this one. Look in

Table-level backup

梦想的初衷 提交于 2019-11-27 10:31:11
How to take table-level backup (dump) in MS SQL Server 2005/2008? John Sansom You cannot use the BACKUP DATABASE command to backup a single table, unless of course the table in question is allocated to it's own FILEGROUP . What you can do, as you have suggested is Export the table data to a CSV file. Now in order to get the definition of your table you can 'Script out' the CREATE TABLE script. You can do this within SQL Server Management Studio, by: right clicking Database > Tasks > Generate Script You can then select the table you wish to script out and also choose to include any associated

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

一世执手 提交于 2019-11-27 09:59:10
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: (source: supercrazyawesome.com ) How do I parse this into a Cocoa application so that I can update my (free)

Question mark characters displaying within text, why is this?

感情迁移 提交于 2019-11-27 09:12:12
I have a backup server that automatically backs up my live site, both files and database. On the live site, the text looks fine, but when you view the mirrored version of it, it displays '?' within some of the text. This text is stored within the news database table. Here is a screen shot of it being on the live server and of it on the mirrored server. What could happen within the process of backing it up to the mirrored server? IAdapter The following articles will be useful http://dev.mysql.com/doc/refman/5.0/en/charset-syntax.html http://dev.mysql.com/doc/refman/5.0/en/charset-connection

Postgresql 9.2 pg_dump version mismatch

走远了吗. 提交于 2019-11-27 09:11:48
问题 I am trying to dump a Postgresql database using the pg_dump tool. $ pg_dump books > books.out How ever i am getting this error. pg_dump: server version: 9.2.1; pg_dump version: 9.1.6 pg_dump: aborting because of server version mismatch The --ignore-version option is now deprecated and really would not be a a solution to my issue even if it had worked. How can I upgrade pg_dump to resolve this issue? 回答1: You can either install PostgreSQL 9.2.1 in the pg_dump client machine or just copy the

What is the best way to do incremental backups in MySQL?

℡╲_俬逩灬. 提交于 2019-11-27 08:55:30
We are using MySQL version 5.0 and most of the tables are InnoDB. We run replication to a slave server. We are thinking of backing up the MySQL log files on a daily basis. Questions Is there any other way of doing an incremental backup without using the log files? What are the best practices when doing incremental backups? AFAIK the only way of doing incremental backups is by using the binary-log. You have other options if you want to do full backups (InnoDB hotcopy), but incremental means that you need to log all transactions made. You need to ask yourself why you're backing up data. Since

How to import a SQL Server .bak file into MySQL?

℡╲_俬逩灬. 提交于 2019-11-27 06:03:05
The title is self explanatory. Is there a way of directly doing such kind of importing? Richard Harrison The .BAK files from SQL server are in Microsoft Tape Format (MTF) ref: http://www.fpns.net/willy/msbackup.htm The bak file will probably contain the LDF and MDF files that SQL server uses to store the database. You will need to use SQL server to extract these. SQL Server Express is free and will do the job. So, install SQL Server Express edition, and open the SQL Server Powershell. There execute sqlcmd -S <COMPUTERNAME>\SQLExpress (whilst logged in as administrator) then issue the following