backup

How can I schedule a daily backup with SQL Server Express? [duplicate]

。_饼干妹妹 提交于 2019-11-27 06:00:50
This question already has an answer here: SQL Server Automated Backups [closed] 3 answers I'm running a small web application with SQL server express (2005) as backend. I can create a backup with a SQL script, however, I'd like to schedule this on a daily basis. As extra option (should-have) I'd like to keep only the last X backups (for space-saving reasons obviously) Any pointers? [edit] SQL server agent is unavailable in SQL server express... You cannot use the SQL Server agent in SQL Server Express. The way I have done it before is to create a SQL Script, and then run it as a scheduled task

How to restore to a different database in sql server?

蹲街弑〆低调 提交于 2019-11-27 05:46:48
I have a backup of Database1 from a week ago. The backup is done weekly in the scheduler and I get a .bak file. Now I want to fiddle with some data so I need to restore it to a different database - Database2 . I have seen this question: Restore SQL Server database in same pc with different name and the recommended step is to rename the original db, but I am out of that option as I am in the production server and I cant really do it. Is there any other way of restoring it to Database2 , or atleast, how do I browse through the data of that .bak file? thanks. ps: the second answer from the above

Maintaining and synchronizing a mirror remote Git repository

本秂侑毒 提交于 2019-11-27 05:33:37
I am recently using a remote git server (my own computer), and the server malfunctioned and can't be remotely accessed. I was wondering if there is a proper way to maintain TWO remote depositories, so that the second depository on my other computer can be automatically used when the first one fails? My second question is how to automatically (e.g. via a script) to synchronize the primary and backup remote depositories periodically, and how can I change which one is the default/primary depo? My daily use case is pretty simple, as follows: git clone user@host:A.git cd A (modify code ..) git add

backing up android device using adb [closed]

白昼怎懂夜的黑 提交于 2019-11-27 05:04:41
问题 I am attempting to copy all the applications and data from a android tablet1 to another android tablet2. Both tablets has the same specification and is the same type. My approach is to use the command adb backup -f my_backup.ab -apk -shared -all to get all the files from tablet1 then use the command: adb restore my_backup.ab to restore(basically copy) all the backed up files to tablet2. The restore works fine, my problem is that sometimes backup does not backup all applications are all data

Inno Setup: Backup external file before install delete section

南笙酒味 提交于 2019-11-27 04:44:16
问题 I would make a backup of files and folders before the [InstallDelete] section deletes them [Files] Source: "{app}\res_mods\configs\wotstat\cache.json"; \ DestDir: "{app}\_backup\res_mods_{#DateTime}\configs\wotstat\"; \ Flags: external skipifsourcedoesntexist uninsneveruninstall Source: "{app}\res_mods\0.9.17.1\vehicles\*"; \ DestDir:"{app}\_backup\res_mods_{#DateTime}\0.9.17.1\vehicles\"; \ Flags: external skipifsourcedoesntexist createallsubdirs recursesubdirs uninsneveruninstall This works

Is “git push --mirror” sufficient for backing up my repository?

大城市里の小女人 提交于 2019-11-27 04:14:57
问题 I'm a solo developer, working in a local Git repository. For backups, I want to send an exact copy of that repository off to another server. Is it sufficient to do this? git push --mirror I'm asking because I can sometimes run this command two or three times before Git tells me "Everything up-to-date", so apparently it's not an exact mirror. It seems to be re-pushing tracking branches...? $ git push --mirror Counting objects: 42, done. Delta compression using up to 8 threads. Compressing

Backup AWS Dynamodb to S3

守給你的承諾、 提交于 2019-11-27 04:14:28
问题 It has been suggested on Amazon docs http://aws.amazon.com/dynamodb/ among other places, that you can backup your dynamodb tables using Elastic Map Reduce, I have a general understanding of how this could work but I couldn't find any guides or tutorials on this, So my question is how can I automate dynamodb backups (using EMR)? So far, I think I need to create a "streaming" job with a map function that reads the data from dynamodb and a reduce that writes it to S3 and I believe these could be

Tar a directory, but don't store full absolute paths in the archive

只愿长相守 提交于 2019-11-27 04:09:28
问题 I have the following command in the part of a backup shell script: tar -cjf site1.bz2 /var/www/site1/ When I list the contents of the archive, I get: tar -tf site1.bz2 var/www/site1/style.css var/www/site1/index.html var/www/site1/page2.html var/www/site1/page3.html var/www/site1/images/img1.png var/www/site1/images/img2.png var/www/site1/subdir/index.html But I would like to remove the part /var/www/site1 from directory and file names within the archive, in order to simplify extraction and

Can I restore my source code that has been uploaded into Google AppEngine?

蹲街弑〆低调 提交于 2019-11-27 04:06:09
I recently had a hard drive crashed and lost all of my source code. Is it possible to pull/checkout the code that I have already uploaded to Google App Engine (like the most recent version)? Since I just went to all the trouble of figuring out how to do this, I figure I may as well include it as an answer, even if it doesn't apply to you: Before continuing, swear on your mother's grave that next time you will back your code up, or better, use source control. I mean it: Repeat after me " next time I will use source control ". Okay, with that done, let's see if it's possible to recover your code

How do I register a custom filetype in iOS

≯℡__Kan透↙ 提交于 2019-11-27 03:42:09
I am currently creating a app in which i want to let the user backup their files (plist + m4a). I zip the files and change the extension to a custom one (specifically for my app, say "*.MyBackup"). The user can then either export via email or with iTunes file sharing. I have already read about CFBundleDocumentTypes but didn't really get what I had to do with them. The part where i am currently stuck at is how to associate my extension with my app. If the user sends himself an email with the "custom"-zip file he's supposed to be able to open it with my app. How do I do this and what are