backup

onRestore not invoked for my custom BackupAgent

别等时光非礼了梦想. 提交于 2019-12-03 16:16:45
问题 There are some data in my Android app that I would like to backup and restore. For that purpose I have created a custom implementation of BackupAgent . In my manifest in have included the backup agent as you can see below <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" package="com.myapp" android:versionCode="14" android:versionName="1.13" > <application android:backupAgent="com.myapp.MyBackupAgent"> <meta-data android:name="com.google

How to backup and restore the Mongodb database

偶尔善良 提交于 2019-12-03 16:14:12
How to use C# to backup and restore the Mongodb database? For now there is only an server to save the mongodb data, and I want to make an backup in case of the server is destroyed so that I can restore it. Dose anybody know how to do that using C#? Prahlad Yeri If you just want automated backups, there is an easier way than resorting to a full-fledged programming language: http://docs.mongodb.org/manual/tutorial/backup-databases-with-filesystem-snapshots/ As shown in the link, the below command would suffice. You may put it in a statup-script/daemon to execute it at regular frequencies: Backup

Backup MySQL database

陌路散爱 提交于 2019-12-03 16:08:33
I have a MySQL Database of about 1.7GB. I usually back it up using mysqldump and this takes about 2 minutes. However, I would like to know the answers to the following questions: Does mysqldump block read and/or write operations to the database? Because in a live scenario, I would not want to block users from using the database while it is being backed up. It would be ideal for me to only backup the WHOLE database once in, say, a week, but in the intermediate days only one table needs to be backed up as the others won't change. Is there a way to achieve this? Is mysqlhotcopy a better

LVM snapshot of mounted filesystem

六眼飞鱼酱① 提交于 2019-12-03 16:07:03
I'd like to programmatically make a snapshot of a live filesystem in Linux, preferably using LVM. I'd like not to unmount it because I've got lots of files opened (my most common scenario is that I've got a busy desktop with lots of programs). I understand that because of kernel buffers and general filesystem activity, data on disk might be in some more-or-less undefined state. Is there any way to "atomically" unmount an FS, make an LVM snapshot and mount it back? It will be ok if the OS will block all activity for few seconds to do this task. Or maybe some kind of atomic "sync+snapshot"?

SQL Server backup&restore

孤街醉人 提交于 2019-12-03 15:25:45
backup string connectionString1 = (@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|Database1.mdf;Database=Database1;Integrated Security=True; User Instance=True"); SqlConnection cn = new SqlConnection(connectionString1); cn.Open(); SqlCommand cmd = new SqlCommand(); SqlDataReader reader; cmd.CommandText = @"BACKUP DATABASE Database1 TO DISK = 'C:\SRI2Works.bak'"; cmd.CommandType = CommandType.Text; cmd.Connection = cn; reader = cmd.ExecuteReader(); cn.Close(); MessageBox.Show("Database Backup Successfull."); restore string connectionString1 = (@"Data Source=.\SQLEXPRESS

Best practices for core data store (sqlite) backup?

痴心易碎 提交于 2019-12-03 14:12:45
问题 I am working on an update for my new iphone app which will include the ability to back up & restore the Core Data store (SQLite). I have been looking for good options for how to do this but there are very few resources about this. What are the best practices that you have found for doing Core Data backup? I'd like to keep the configuration as simple as possible so that users actually back up. As we know, users very rarely back up manually. I'd like it to be automated if possible. What have

Is there (an automated) way to backup Hudson CI files?

余生长醉 提交于 2019-12-03 12:57:48
问题 Here at my company we have three Hudson CI servers with 100+ jobs configured. We are looking for an automated way to periodically backup job configurations and build history. Currently we have an ant script that we configure as a job but it's not easy to maintain and not elegant. Have any of you found a way to manage this? 回答1: There is a Backup Plugin. I don't believe that it supports scheduling of periodic backups, but you might be able to trigger it by accessing it through the URL (like

“permission denied” for pg_dump output file

帅比萌擦擦* 提交于 2019-12-03 12:05:45
i used below command to backup my database sudo -u user_name pg_dump dbName -f /home ..../someWhere/db.sql but it gives me this : pg_dump: [archiver] could not open output file "/home ..../someWhere/db.sql": Permission denied after googling this issue i find that i must backup my data under the /tmp path , but doesn't work how can i resolve this issue ? thanks in advance, i am using Ubuntu 12.04 lts try pg_dump from psql command-line as below: postgres=# \! pg_dump dbName -f /home ..../someWhere/db.sql It looks like your pg_dump is working fine, but it is having problems opening the output

Back up AppEngine database (Google cloud storage?)

China☆狼群 提交于 2019-12-03 12:04:29
I have an AppEngine application that currently has about 15GB of data, and it seems to me that it is impractical to use the current AppEngine bulk loader tools to back up datasets of this size. Therefore, I am starting to investigate other ways of backing up, and would be interested in hearing about practical solutions that people may have used for backing up their AppEngine Data. As an aside, I am starting to think that the Google Cloud Storage might be a good choice. I am curious to know if anyone has experience using the Google Cloud Storage as a backup for their AppEngine data, and what

RabbitMQ : how to create and restore backup

*爱你&永不变心* 提交于 2019-12-03 11:25:13
问题 I'm new to RabbitMQ and i need some help. how to do backup and restore to RabbitMQ, and what is the important data i need to save. thanks! 回答1: If you have the management plugin installed you can back-up and restore the broker on the Overview page. At the bottom you will see Import/Export Definitions and you can use this to download a JSON representation of your broker. This will restore Exchanges, Queues, Virtual Hosts, Policies and Users. Hope that helps. 回答2: For those looking for the HTTP