backup

Handle different restore scenarios with Cassandra 2.2

别等时光非礼了梦想. 提交于 2020-01-15 09:33:31
问题 I have a Cassandra 3-node cluster and a keyspace created with a replication_factor of 3. I make my backups for this keyspace with nodetool snapshot . As recommended by Cassandra documentation, to make a global backup I start it with a cron job on each node (3 nodes are NTP synchronized). I'm not using incremental snapshots, it's always a new global snapshot. Unfortunately, I've some troubles with the restore process. First of all, I've set a replication factor to 3 (and QUORUM level of

Restore cassandra cluster data when acccidentally drop table

这一生的挚爱 提交于 2020-01-14 22:47:32
问题 As you know, Cassandra cluster have replication to prevent data loss even if some node in the cluster down. But in the case that an admin accidentally drop a table with big amount of data, and that command had already executed by all the replica in cluster, is this means you lost that table and cannot restore it? Is there any suggestion to cope with this kind of disaster with short server down time? 回答1: From cassandra docs: auto_snapshot (Default: true ) Enable or disable whether a snapshot

svn backup from googlecode

心不动则不痛 提交于 2020-01-13 11:53:07
问题 I currently host my project on googlecode svn, however I would like to have a copy of it hosted on another svn server (also online), can anyone suggest the best way to keep this backed up and up to date? 回答1: Dump and sync will work, but it's probably easiest to use svnsync instead, assuming you're using the copy server as a read-only backup and not intending to commit to it as well. 回答2: http://rsvndump.sourceforge.net/ http://svnbook.red-bean.com/en/1.1/ch05s03.html#svn-ch-5-sect-3.5 Though

Export/Import VS extensions list?

六眼飞鱼酱① 提交于 2020-01-13 04:12:31
问题 Is there an easy way to backup the installed extensions list in VS (2017), so that when I install the machine anew I can easily install my regular extensions at once? Note: I've found this question that asks an identical question to my own, except it targets VS Code, whereas my question is about Visual Studio for Windows. 回答1: Roaming Extension Manager is built in Visual Studio 2017: The Roaming Extension Manager helps you keep track of all your favorite extensions across all of your

Export/Import VS extensions list?

杀马特。学长 韩版系。学妹 提交于 2020-01-13 04:12:11
问题 Is there an easy way to backup the installed extensions list in VS (2017), so that when I install the machine anew I can easily install my regular extensions at once? Note: I've found this question that asks an identical question to my own, except it targets VS Code, whereas my question is about Visual Studio for Windows. 回答1: Roaming Extension Manager is built in Visual Studio 2017: The Roaming Extension Manager helps you keep track of all your favorite extensions across all of your

Sql Server Backup to UNC

我与影子孤独终老i 提交于 2020-01-12 13:51:07
问题 I've create a maintenance plan on my SQL Server 2005 server. The backup should be written to another server. I'm using a UNC path for this. The user running the SQL Agent jobs has full access to the other server. It's admin on both servers. The problem is that this statement fails ( has the correct server name ofcourse): EXECUTE master.dbo.xp_create_subdir N'\\servername\c$\SqlServerBackup\Test' The error I get is: Msg 22048, Level 16, State 1, Line 0 xp_create_subdir() returned error 123,

What's the best way to back up data on Google App Engine?

ぐ巨炮叔叔 提交于 2020-01-11 15:30:31
问题 Google itself provides two solutions. http://code.google.com/appengine/docs/python/tools/uploadingdata.html One of these is new and experimental and requires you to run a separate command (and separately enter your username and password) for each kind of data you want to back up. The other requires you to twice write out information on the structure of all the kinds of your data, information that is already implicit in your models file. (We've got 25 different kinds of data so I'm sensitive

How to create a backup of a single table in a postgres database?

依然范特西╮ 提交于 2020-01-11 14:49:23
问题 Is there a way to create a backup of a single table within a database using postgres? And how? Does this also work with the pg_dump command? 回答1: Use --table to tell pg_dump what table it has to backup: pg_dump --host localhost --port 5432 --username postgres --format plain --ignore-version --verbose --file "<abstract_file_path>" --table public.tablename dbname 回答2: If you are on Ubuntu, Login to your postgres user sudo su postgres pg_dump -d <database_name> -t <table_name> > file.sql Make

How to create a backup of a single table in a postgres database?

天大地大妈咪最大 提交于 2020-01-11 14:49:07
问题 Is there a way to create a backup of a single table within a database using postgres? And how? Does this also work with the pg_dump command? 回答1: Use --table to tell pg_dump what table it has to backup: pg_dump --host localhost --port 5432 --username postgres --format plain --ignore-version --verbose --file "<abstract_file_path>" --table public.tablename dbname 回答2: If you are on Ubuntu, Login to your postgres user sudo su postgres pg_dump -d <database_name> -t <table_name> > file.sql Make

Use child-item result object in array

一笑奈何 提交于 2020-01-11 11:30:36
问题 I encountered a problem in PowerShell in listing its child items. $file = Get-ChildItem \\compname\c$\folder\ -Recurse -Filter *filename.txt* | Select-Object -Property DirectoryName, FullName When I try this to get its objects it was empty: $file.FullName or $file.DirectoryName If there is a many files in that directory with the same file name, how can I backup up those files in the same folder by by adding .bak on its file extension. 回答1: You're still using PowerShell v2 or earlier. These