backup

restoring git repository from bundle backup

荒凉一梦 提交于 2019-12-20 09:57:24
问题 i created backups of my git repository like in How to backup a local Git repository? proposed with git bundle create /tmp/foo-all --all I can see all refs are in there, including a remote ref created by git-svn. Now I can't figure out how to restore this bundle to a local repository again. I am quite quite sure i've done it already once. I tried git-clone but that gives me a just a repository with my backup bundle as remote repo. I also tried git init git bundle unbundle /tmp/foo --all but

How do I back up a database to a .bak file?

风格不统一 提交于 2019-12-20 09:54:10
问题 I have a website I've created in Visual Studio 2008 and I need to take it live. How can I backup the database file to a .bak so I can hand it over to the hosting company to place on the server? 回答1: From a SQL prompt: BACKUP DATABASE MyDatabase TO DISK='E:\MyDatabase.bak' 回答2: Go to Microsoft Server Management Studio and right click on your database name. Go to "Tasks" -> "Back Up..." Then assign your properties, ensure that "Backup Type" is full. Then at the right there is a button "Add"

Backup a database on a HDD with a different sector size

蓝咒 提交于 2019-12-20 09:49:41
问题 In our development environment we have long been using a particular backup and restore script for each of our products through various SQL Server versions and different environment configurations with no issues. Recently we have upgraded to SQL Server 2012 as our standard development server with SQL Compatibility Level 2005 (90) to maintain support with legacy systems. Now we find that on one particular dev's machine we get the following error when attempting to backup the database: Cannot

Creating a shadow copy using the “Backup” context in a PowerShell

只谈情不闲聊 提交于 2019-12-20 09:47:43
问题 I am in the process of writing a PowerShell script for backing up a windows computer using rsync. To this end, I am attempting to use WMI from said script to create a non-persistent Shadow copy with writer participation (as is apparently recommended for backups). I found out from another question (Accessing Volume Shadow Copy (VSS) Snapshots from powershell) a way to create a shadow copy in general, but the example given there uses "ClientAccessible" as the context parameter, which result in

On XP, best way to synchronize files and folders [closed]

前提是你 提交于 2019-12-20 09:45:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I'm using SyncToy 1.4 and it would be fine for what I need except that: It can't handle the assigned drive letter changing between systems (e.g. syncing a USB drive), it leaves its own (hidden) files in the folders being synched (is this a limitation of the OS/FS?), it recreates empty folders for ones that have

Realistic Data Backup method for Parse.com

余生长醉 提交于 2019-12-20 09:37:02
问题 We are building an iOS app with Parse.com, but still can't figure out the right way to backup data efficiently. As a premise, we have and will have a LOT of data store rows. Say we have a class with 1million rows, assume we have it backed up, then want to bring it back to Parse, after a hazardous situation (like data loss on production). The few solutions we have considered are the following: 1) Use external server for backup BackUp: - use the REST API to constantly back up data to a remote

How to backup an AppEngine site?

泄露秘密 提交于 2019-12-20 09:24:06
问题 So, you build a great shiny cloudy 2.0 website on top of AppEngine, with thousands upon thousands of images saved into the datastore and gigs of data at the blobstore. How do you backup them? 回答1: use google app engine data export http://code.google.com/appengine/docs/python/tools/uploadingdata.html 回答2: The command here does not work http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Downloading_and_Uploading_All_Data --dump needs to be replaced with download_data , -

How to backup an AppEngine site?

◇◆丶佛笑我妖孽 提交于 2019-12-20 09:21:13
问题 So, you build a great shiny cloudy 2.0 website on top of AppEngine, with thousands upon thousands of images saved into the datastore and gigs of data at the blobstore. How do you backup them? 回答1: use google app engine data export http://code.google.com/appengine/docs/python/tools/uploadingdata.html 回答2: The command here does not work http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Downloading_and_Uploading_All_Data --dump needs to be replaced with download_data , -

Backup MySQL users

微笑、不失礼 提交于 2019-12-20 08:49:05
问题 How do I backup MySQL users and their privileges? Anything like mysqldump? I am looking for something like: mysqldump -d -u root -p MyTable > Schema.sql 回答1: mysql -BNe "select concat('\'',user,'\'@\'',host,'\'') from mysql.user where user != 'root'" | \ while read uh; do mysql -BNe "show grants for $uh" | sed 's/$/;/; s/\\\\/\\/g'; done > grants.sql 回答2: You can backup mysql database using mysqldump -u root -p mysql > mysql.sql and restore mysql database by executing mysql -uroot -p mysql <

Using Subversion with DropBox

岁酱吖の 提交于 2019-12-20 08:23:58
问题 Is it a bad idea to use DropBox as a backup system for Subversion repositories? Has anyone tried using Subversion with an an online file sharing utility like DropBox? What's your experiences? My concern is whether this will work - mainly because Subversion maintains locks and it's very specific about it. I'm not sure if DropBox and Subversion can both work together? p.s. I'm thinking of using this for my Xcode projects, and no, i don't want to use github because it's not free - you can't keep