backup

backup and restore ALL resharper settings

不打扰是莪最后的温柔 提交于 2019-11-29 23:12:41
How can I backup and later restore (after a clean install) ALL resharper settings? On XP Resharper stores its settings in: %userprofile%\Application Data\JetBrains\ReSharper\[R# Version]\[VS Version] and of Vista/7: %userprofile%\AppData\Roaming\JetBrains\ReSharper\[R# Version]\[VS Version] where [R# Version] is the version of ReSharper installed (e.g. v4.5) and [VS Version] is your Visual Studio version (e.g. vs9.0). Just copy all the files from that folder to backup, and put them back there to restore. 来源: https://stackoverflow.com/questions/2175348/backup-and-restore-all-resharper-settings

Backup SQL Server via C#

喜你入骨 提交于 2019-11-29 21:21:26
问题 How easy is it to backup a SQL Server database via C# code? I see lots of related questions, but no real answers. 回答1: Or: Generate your backup script in Management Studio, put it in a stored procedure, run procedure from C# code. CREATE PROCEDURE sp_backup AS BEGIN BACKUP DATABASE [YourDatabase] TO DISK = N'C:\YourPathAndFile.bak' WITH NOFORMAT, NOINIT, NAME = N'Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10 END GO 回答2: SQL Management Objects - Microsoft.SqlServer.Management.Smo

Django backup strategy with dumpdata and migrations

可紊 提交于 2019-11-29 21:08:23
问题 As in this question, I set up a dumpdata -based backup system for my database. The setup is akin to running a cron script that calls dumpdata and moves the backup to a remote server, with the aim of simply using loaddata to recover the database. However, I'm not sure this plays well with migrations. loaddata now has an ignorenonexistent switch to deal with deleted models/fields, but it is not able to resolve cases where columns were added with one-off defaults or apply RunPython code. The way

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

GIT clone to external drive for backup

穿精又带淫゛_ 提交于 2019-11-29 21:03:54
We have GIT set up within our windows network (using msysgit & GitExtensions). We each have our own repositories and we push to a remote 'bare' repository on one of our servers. All good. I'm trying to set up a scheduled job on the server, which will clone a repository from the C drive to an external drive (on F) - having some difficulty getting this to work. I can do this in GIT bash relatively easily, but I'm not sure how to save this into a batch file that I can then scehdule. What I have so far: rmdir F:\GitClone /s /q mkdir F:\GitClone mkdir F:\GitClone\Repo1 CD /D F:\GitClone\Repo1\ GIT

Backup Eclipse settings

我是研究僧i 提交于 2019-11-29 20:59:57
I have had to re/install Eclipse across different platforms (windows and linux) several times this year. I have not found an effective single solution way to share settings/preferences across different versions of Eclipse. This is what I currently do: Export Software Update Sites (Bookmarks) XML file. Export Java->Code Style->Code templates Export Java->Code Style->Formatter Export Java->Code Style->Organize Imports Export Java->Templates Configure Project Specific Settings for all your projects then copy the .settings directory from the base directory of your project. Take a screenshot of

Firestore new database - How do I backup

早过忘川 提交于 2019-11-29 20:53:44
Does the google firestore database service provides a backup? If so, how do I backup the database and how do I restore in case of an error? Update : It is now possible to backup and restore Firebase Firestore using Cloud Firestore managed export and import service You do it by: Create a Cloud Storage bucket for your project - Make sure it's a regional in us-central1 or 2 / multi regional type of bucket Set up gcloud for your project using gcloud config set project [PROJECT_ID] EXPORT Export all by calling gcloud alpha firestore export gs://[BUCKET_NAME] Or Export a specific collection using

How should I backup & restore docker named volumes

耗尽温柔 提交于 2019-11-29 20:42:59
I'm a little bit confused with the functionnality of named volumes in a docker compose file specifically when it comes to backup/restore my app. I'm actually testing this dockercompose file : version: '2' services: django: build: context: "{{ build_dir }}/docker/django" depends_on: - db environment: [...] volumes: - code:/data/code - www:/var/www - conf:/data/conf networks: - front - db expose: - "8080" entrypoint: "/init" db: build: context: "{{ build_dir }}/docker/postgres" environment: [...] volumes: - data:/var/lib/postgresql/data networks: - db volumes: data: www: code: conf: networks:

How do I back up a remote SVN repository

ⅰ亾dé卋堺 提交于 2019-11-29 19:40:31
I am currently moving my SVN server from my home server to my remote server so I can access it more easily from other locations. My remote server is not backed up so I want to regularly back it up to my home server. Remote server is Windows 2003 server. Home server is Windows Home Server. What is the best way to do this? can I get my home server to get a dump of the remote server every night? Bandwidth isn't a huge consideration but if I could just copy any new checkins to an SVN server on my home server that would be fine. Any suggestions welcome. Stefan Just use the svnsync command. First,

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