restore

Simple Backup and Restore for mysql Database from Java

帅比萌擦擦* 提交于 2019-11-29 23:13:23
How to backup a mysql database from a java code such that: It's saving path is dynamically allocated. Spaces in Path do not create problems. Path is generated using the executing jar file. DBname,DBusername or DBpass are dynamically allotted. Creating a specialized folder to save the backup file. Note: The codes given below are one way of solving the problem and probably not the best method. Everything is changeable inside the code. If you do not have mysql in environment variables, add the path before mysqldump and mysql (e.g. For XAMPP, C:\xampp\mysql\bin\mysqldump) (Hope, this will solve

Backup core data locally, and restore from backup - Swift

泪湿孤枕 提交于 2019-11-29 21:08:11
I'm struggling to find any information about creating backups of core data. My ultimate goal is to allow the user to create multiple backups, and restore from a selected backup. I've found a sample project that allows you backup/restore locally or via iCloud in Objective-C, but nothing in swift. Can anyone help? Or point me in the right direction. I don't even know where to start with this one. Tom Harrington I've never needed to do this but if I did this is what I'd do. To make backups At any time, use the following steps: Create a new, second Core Data stack. Use either NSPersistentContainer

PostgreSQL: improving pg_dump, pg_restore performance

烂漫一生 提交于 2019-11-29 19:19:24
When I began, I used pg_dump with the default plain format. I was unenlightened. Research revealed to me time and file size improvements with pg_dump -Fc | gzip -9 -c > dumpfile.gz . I was enlightened. When it came time to create the database anew, # create tablespace dbname location '/SAN/dbname'; # create database dbname tablespace dbname; # alter database dbname set temp_tablespaces = dbname; % gunzip dumpfile.gz # to evaluate restore time without a piped uncompression % pg_restore -d dbname dumpfile # into a new, empty database defined above I felt unenlightened: the restore took 12 hours

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 can I save opened tabs and tab groups in Visual Studio 2012?

左心房为你撑大大i 提交于 2019-11-29 13:13:26
I need to have different set of open tabs and tab groups for each of my tasks. Import and export setting not helping me to do this, neither does this SO question that has been asked similarly but for windows/tools layout - i.e. NOT for the tabs/tab-groups. How can I save and restore the saved set? Late to the party here but it popped up pretty high in my google search for this kind of thing so I'll drop my find: Save All The Tabs . You can save open documents and later reopen them as a group with the Favorite Documents extension. One Marketplace Extension that works with Visual Studio 2013,

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

How to backup and restore all the source code in svn?

和自甴很熟 提交于 2019-11-29 07:45:33
Right now I am using Windows XP. If i just copy the whole repository folder in visual SVN, once the server is down, how can i restore it via the backuped repository folder? another better solution to backup and restore in visual svn ? by the way, any method for backup and restore in visual source control? You can just copy the entire directory in and out. Files is files, there's nothing magic about them. If you want to do something more complicated, like edit the repository contents in some way before restoring, then you need dump and load. svnadmin dump /path/to/repository | bzip2 -9c > svn