backup

How do you organise multiple git repositories, so that all of them are backed up together?

二次信任 提交于 2019-11-29 19:01:22
With SVN, I had a single big repository I kept on a server, and checked-out on a few machines. This was a pretty good backup system, and allowed me easily work on any of the machines. I could checkout a specific project, commit and it updated the 'master' project, or I could checkout the entire thing. Now, I have a bunch of git repositories, for various projects, several of which are on github. I also have the SVN repository I mentioned, imported via the git-svn command.. Basically, I like having all my code (not just projects, but random snippets and scripts, some things like my CV, articles

Moving a Subversion repository to another server

家住魔仙堡 提交于 2019-11-29 18:47:19
I have a server that hosts my Subversion code base. That server is currently a Windows Server 2003 box, and my IT administrator wants to update it to Windows Server 2008 . This means that I'm going to need to move my Subversion repository while the server gets built up and was wondering what the best practices are for moving the repository to a new server. It seems like, looking online, the recommended way is to use: svnadmin dump /path/to/repository > repository-name.dmp And then use: svnadmin create repository-name svnadmin load repository-name< repository-name.dmp To import the repository.

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

岁酱吖の 提交于 2019-11-29 18:41:09
My SQL Server 2005 doesn't restore a backup because of active connections. How can I force it? George Stocker 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 changed for SQL Server Management studio 2008, here are the steps (via: Tim Leung ) Right

How to pg_restore

隐身守侯 提交于 2019-11-29 17:41:57
问题 I am dumping my database 'mydatabase' into a text file 'mydatabase.sql' through command line. "C:/Program Files (x86)/PostgreSQL/9.1/bin/pg_dump.exe " --host localhost --port 5432 --username "postgres" --no-password --verbose --file "C:\Users\User 1\Desktop\mydatabase.sql" "mydatabase" Thas' going nice. But after many tries I can't do a pg_restore those file back to database with data. But if I delete all tables in this database I can do it with: psql -f "C:\Users\User 1\Desktop\mydatabase

Backing up (and restoring) a Plone instance

寵の児 提交于 2019-11-29 16:27:45
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 a good idea to just backup the whole ~/Plone/zinstance directory, but I found thousands of occurrences

how to backup contacts or sms to SD card as .xml file or .csv file and restore it later

烈酒焚心 提交于 2019-11-29 15:23:20
问题 I am trying to develop a feature into my app to backup sms and contacts to SD Card as .xml or .csv format and restore it later. so please anyone give me some suggestions or some sample code or any resource links related to this. thanks in advance 回答1: public ArrayList<String> smsBuffer = new ArrayList<String>(); String smsFile = "SMS"+".csv"; private void backupSMS(){ smsBuffer.clear(); Uri mSmsinboxQueryUri = Uri.parse("content://sms"); Cursor cursor1 = getContentResolver().query(

Visual Studio 2008\Backup Files folder created when every new VS instance is opened

耗尽温柔 提交于 2019-11-29 11:59:10
问题 I think I have something broken with the path that VS 2008 saves the backup files. Since few days, it creates a new "Visual Studio 2008" directory in the same folder that my .sln file exists. Then, after the time of the first auto-save expires, the backup files are being saved to this folder. I browsed the tools-options dialog but I haven't found a way to set the directory to by static: C:\documents and setings\\My Documents\Visual Studio 2008\Backup Files. Can anybody point me with the right

Where are data files of elasticsearch on a standard debian install?

橙三吉。 提交于 2019-11-29 11:40:17
问题 Now I'm in a very problematic situation... My data server has been hacked and now I can't request my elasticsearch server by curl or any other method. I have a bunch of very critical data which was not yet backuped (2 days late, hell, I didn't see the alert that backup failed). I've tried to restart the service but no way, it say nothing and I get nothing in processes when I'm watching with ps. I think that comes from my hoster which runs my server in a secure mode... So I tried to locate the

How to perform a remote Solr core backup through SolrJ client?

梦想的初衷 提交于 2019-11-29 11:30:55
I want to write a java client based on SolrJ which pulls the entire core data to a file from a remote Solr server. Later on I want to replay this file to another remote Solr server core. What is the best method to implement this functionality? It's now possible with latest Solr versions. To achieve backup on one Solr Server and restore on another one needs to do the following: For each Solr installation in solr.xml setup backup repository to point to some shared drive. For example, one can use HDFS (this config requires -Dsolr.hdfs.home=... to be added into start script): <solr> ... <backup>

MySQL backup and restore from command line

a 夏天 提交于 2019-11-29 10:34:45
问题 I am using Command line to backup and restore MYSQL Database. Let use I m having a Database Data1 having Views and Procedures in it. When in Cmd line , I use mysqldump i.e ..>bin> mysqldump -u root -proot Data1 > Datafile.mysql When I use above Cmd, It creates a Backup file on bin Folder of Mysql with Dtafile.mysql Name. but the thing is it creates Back Up of Only Tables, Not Procedures. And when I m restoring it in a Blank Database "Data2" ..bin> mysql - u root -proot Data2 < Dataafile.mysql