backup

Backup on File Close Excel VBA

和自甴很熟 提交于 2019-12-20 07:36:02
问题 I want Excel to automatically backup a workbook on file close without prompts to the user. I found the excellent code below online (forgot source) but the backup FileType is changing to a BAK File that I cannot open. How do I fix this problem. Both files will be in the same folder & the backup should have same file name & "-bak" or ".bak". Sub SaveWorkbookBackup() Dim awb As Workbook, BackupFileName As String, i As Integer, OK As Boolean If TypeName(ActiveWorkbook) = "Nothing" Then Exit Sub

Microsoft Sql Server Managment studio backup size goes negative

喜你入骨 提交于 2019-12-20 04:54:24
问题 The problem is that I need to explain the different sizes of backups that are being made of a database in a plant. Sometimes the difference between the sizes is in negative, even though that there is no data being deleted from the system. Datum Backupfile-file Size KB Diff 6/1/10 backup201006010100.bak 3355914 7/1/10 backup201007010100.bak 4333367 977453 7/2/10 backup201007020100.bak 4355963 22596 7/3/10 backup201007030100.bak 4380896 24933 7/4/10 backup201007040100.bak 4380404 -492 8/1/10

Microsoft.SqlServer.Management.Smo.FailedOperationException: Backup failed for Server '\\.\pipe\3F103E6E-3FD4-47\tsql\query'

对着背影说爱祢 提交于 2019-12-20 04:11:36
问题 I'm gonna get a backup with below method : void BackupDatabase(string sConnect, string dbName, string backUpPath) { using (SqlConnection cnn = new SqlConnection(sConnect)) { cnn.Open(); dbName = cnn.Database.ToString(); ServerConnection sc = new ServerConnection(cnn); Server sv = new Server(sc); // Create backup device item for the backup BackupDeviceItem bdi = new BackupDeviceItem(backUpPath, DeviceType.File); // Create the backup informaton Microsoft.SqlServer.Management.Smo.Backup bk = new

How can I set up the working directory and the local repository on different drives?

╄→尐↘猪︶ㄣ 提交于 2019-12-20 04:06:06
问题 In Git, how can I set up the working directory and the local repository on different drives? The reason being to back up code on every local commit. We employ a gatekeeper model on the 'master' repository, so I can't just push any old rubbish upstream, but I would like to ensure that any old rubbish is backed up every time I make a local commit. 回答1: Use git init 's --separate-git-dir flag The git init command has a flag for that: --separate-git-dir=<git dir> Instead of initializing the

How can I set up the working directory and the local repository on different drives?

倾然丶 夕夏残阳落幕 提交于 2019-12-20 04:05:52
问题 In Git, how can I set up the working directory and the local repository on different drives? The reason being to back up code on every local commit. We employ a gatekeeper model on the 'master' repository, so I can't just push any old rubbish upstream, but I would like to ensure that any old rubbish is backed up every time I make a local commit. 回答1: Use git init 's --separate-git-dir flag The git init command has a flag for that: --separate-git-dir=<git dir> Instead of initializing the

mysterious vanishing branches in git

蹲街弑〆低调 提交于 2019-12-20 02:42:26
问题 Here are some git actions I performed. As you can see, I made a new branch, modified my files, and then committed the changes. After changing back to another branch, hoping to merge, the branch I was just working on disappeared. Does anyone know how I can recover the files from fixed_merge_branch? I'm freaking out! 1.9.2@whisperme$ git branch fixed_merge_conflict 1.9.2@whisperme$ git checkout fixed_merge_conflict M ArtworkViewController.h M ArtworkViewController.m M ArtworkViewController.xib

How to save file structure to text file?

我是研究僧i 提交于 2019-12-19 10:09:02
问题 I have a folder of media files that are about 1TB big. I want to save the file names and directory structure to a text file for backup and reference. I want to attach a batch or PowerShell script to my backup process so the file gets saved before the backup. Does anyone know an easy way to do this? 回答1: You can use the built in tree.com utility: tree c:\folder /F There's also a PowerShell function, Show-Tree, in PSCX 2.0: http://rkeithhill.wordpress.com/2010/05/10/pscx-2-0-show-tree/ 回答2: a

TFS Database Backup Failed : There is an error in XML document - but which Doc?

安稳与你 提交于 2019-12-19 09:47:21
问题 Our Nightly TFS 2012 backup has just started to fail. It also fails when run directly through TFS Express Administration Console. Which file is the following error actually referring to? If I can find it then I should be able to fix the "Root element is missing" error :) [13/08/2014 23:00:00] [Info] Full database backup job [13/08/2014 23:00:00] [Info] Getting backup lock [13/08/2014 23:00:05] [Error] Exception Message: There is an error in XML document (0, 0). (type InvalidOperationException

How to restore mysql database in XAMPP?

本秂侑毒 提交于 2019-12-19 04:02:31
问题 I have a backup of the entire xampp/mysql folder. How can I use it to recover my old db on a fresh installation of XAMPP? Simply copying the old xampp/mysql folder to new xampp leads to mysql errors like: InnoDB: Table veno/sls37_finder_links_termsc in the InnoDB data dictionary has tablespace id 1171, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL

How to do a backup from a Postgresql-DB via JDBC?

耗尽温柔 提交于 2019-12-19 03:16:32
问题 In our application, we've implemented an automatic DB migration triggered from within our code. Now we want to backup the existing DB before doing any migration. Can anyone explain how to do a full backup of a Postgresql-DB via JDBC from within Java code? Update: it doesn't work via JDBC. Here some working code to the response of Frank Heikens: final List<String> baseCmds = new ArrayList<String>(); baseCmds.add("/usr/bin/pg_dump"); baseCmds.add("-h"); baseCmds.add("hostname"); baseCmds.add("