backup

Backup neo4j community edition offline in unix: mac or linux

牧云@^-^@ 提交于 2019-11-27 02:48:29
问题 Previously I had a problem when making a 'backup' as shown in this question where I get an error when trying to restore the database because I did a copy when the database was running. So I did an experiment with a new database from another computer (this time with ubuntu) I tried this: I created some nodes and relations, very few like 10 (the matrix example). Then I stopped the service neo4j I copied the folder data that contains graph.db to another location After that I deleted the graph.db

How to Copy (and increment) Multiple Instances of a File Using Batch File

烈酒焚心 提交于 2019-11-27 02:22:19
I need to create a batch file that copies a file and increments it upon placing it at the destination. Example. copy C:\TEMP\MyDoc.txt E:\MyData\ Essentially, I need this copy command to copy every time I start it (which it does now just fine). I would like it to increment the file name instead of overwrite it though. If I ran this three times or 100 times (never a certain number) I would like to see on the "MyData" folder: MyDoc.txt MyDoc(1).txt ... Or Copy (1) I'm not really sure what the syntax is for a duplicated file nor do I necessarily care. I just want to ensure that I'm not

Android - Preserve or delete files created by the application on uninstall

纵饮孤独 提交于 2019-11-27 01:26:16
I created an application which creates and stores files to sdcard. Is there a way to bind the folder with application in order to delete all files when the user runs uninstall on android device? Prashast There's no way for your application to know that it is being uninstalled (without modifying the kernel). All files created in the data/data/your.app.package is deleted automatically upon application uninstall. I don't think anything is cleared from the sdcard. You can do a quick test and find that out. Another approach could be to have another application that checks whether this application

Backup Eclipse plugins and settings

送分小仙女□ 提交于 2019-11-27 00:21:48
问题 I'm using Eclipse and have plenty of plugins installed and configured to my needs. Is there any good way to backup these plugins and the configuration of them. I want to be able to replay these plugins in futures eclipse version (as long as they are compatible) and on different PCs. I know I could simply archive the whole eclipse/ folder, but I find this a little inelegant. 回答1: There are two parts to your question: Copying your settings between Eclipse installs Copying your installed plugins

Is there a SQL script that I can use to determine the progress of a SQL Server backup or restore process?

岁酱吖の 提交于 2019-11-26 23:49:58
问题 When I backup or restore a database using MS SQL Server Management Studio, I get a visual indication of how far the process has progressed, and thus how much longer I still need to wait for it to finish. If I kick off the backup or restore with a script, is there a way to monitor the progress, or do I just sit back and wait for it to finish (hoping that nothing has gone wrong?) Edited: My need is specifically to be able to monitor the backup or restore progress completely separate from the

Speeding up mysql dumps and imports [closed]

寵の児 提交于 2019-11-26 23:43:17
Are there any documented techniques for speeding up mySQL dumps and imports? This would include my.cnf settings, using ramdisks, etc. Looking only for documented techniques, preferably with benchmarks showing potential speed-up. http://www.maatkit.org/ has a mk-parallel-dump and mk-parallel-restore If you’ve been wishing for multi-threaded mysqldump, wish no more. This tool dumps MySQL tables in parallel. It is a much smarter mysqldump that can either act as a wrapper for mysqldump (with sensible default behavior) or as a wrapper around SELECT INTO OUTFILE. It is designed for high-performance

Dump a mysql database to a plaintext (CSV) backup from the command line

百般思念 提交于 2019-11-26 23:31:25
I'd like to avoid mysqldump since that outputs in a form that is only convenient for mysql to read. CSV seems more universal (one file per table is fine). But if there are advantages to mysqldump, I'm all ears. Also, I'd like something I can run from the command line (linux). If that's a mysql script, pointers to how to make such a thing would be helpful. If you can cope with table-at-a-time, and your data is not binary, use the -B option to the mysql command. With this option it'll generate TSV (tab separated) files which can import into Excel, etc, quite easily: % echo 'SELECT * FROM table'

What is a simple command line program or script to backup SQL server databases?

房东的猫 提交于 2019-11-26 23:28:59
I've been too lax with performing DB backups on our internal servers. Is there a simple command line program that I can use to backup certain databases in SQL Server 2005? Or is there a simple VBScript? To backup a single database from the command line, use osql or sqlcmd . "C:\Program Files\Microsoft SQL Server\90\Tools\Binn\osql.exe" -E -Q "BACKUP DATABASE mydatabase TO DISK='C:\tmp\db.bak' WITH FORMAT" You'll also want to read the documentation on BACKUP and RESTORE and general procedures . Martin Meixger I use ExpressMaint . To backup all user databases I do for example: C:\>ExpressMaint

What is the best way to implement soft deletion?

╄→гoц情女王★ 提交于 2019-11-26 22:20:12
问题 Working on a project at the moment and we have to implement soft deletion for the majority of users (user roles). We decided to add an is_deleted='0' field on each table in the database and set it to '1' if particular user roles hit a delete button on a specific record. For future maintenance now, each SELECT query will need to ensure they do not include records where is_deleted='1' . Is there a better solution for implementing soft deletion? Update: I should also note that we have an Audit

What is the .metadata folder in Eclipse workspace?

為{幸葍}努か 提交于 2019-11-26 21:48:24
问题 My "workspace" folder includes a hidden folder called ".metadata". Is it important to backup this folder regularly? 回答1: The .metadata folder is an area where Eclipse plug-ins can save any information they want to save. This will include things like your preference setting and the index the Java plug-in uses to find classes and methods quickly. It also includes the .log file where Eclipse logs errors. Exactly what is stored there depends on the plug-ins you have installed (one of my plug-ins