backup

SVN repository backup strategies

你离开我真会死。 提交于 2019-11-26 03:00:50
问题 I\'m new to SVN and I\'d like to know what methods are available for backing up repositories in a Windows environment? 回答1: You could use something like (Linux): svnadmin dump repositorypath | gzip > backupname.svn.gz Since Windows does not support GZip it is just: svnadmin dump repositorypath > backupname.svn 回答2: We use svnadmin hotcopy, e.g.: svnadmin hotcopy C:\svn\repo D:\backups\svn\repo As per the book: You can run this command at any time and make a safe copy of the repository,

Restoring MySQL database from physical files

我的未来我决定 提交于 2019-11-26 02:28:58
问题 Is it possible to restore a MySQL database from the physical database files. I have a directory that has the following file types: client.frm client.MYD client.MYI but for about 20 more tables. I usually use mysqldump or a similar tool to get everything in 1 SQL file so what is the way to deal with these types of files? 回答1: A MySQL MyISAM table is the combination of three files: The FRM file is the table definition. The MYD file is where the actual data is stored. The MYI file is where the

Can I restore a single table from a full mysql mysqldump file?

旧城冷巷雨未停 提交于 2019-11-26 02:04:05
问题 I have a mysqldump backup of my mysql database consisting of all of our tables which is about 440 megs. I want to restore the contents of just one of the tables form the mysqldump. Is this possible? Theoretically, I could just cut out the section that rebuilds the table I want but I don\'t even know how to effectively edit a text document that size. 回答1: You can try to use sed in order to extract only the table you want. Let say the name of your table is mytable and the file mysql.dump is the

How do I backup a database file to the SD card on Android?

痞子三分冷 提交于 2019-11-26 01:44:59
问题 I\'d like to add a feature to my Android app that automatically backs up the SQLite database to the SD card. What\'s the best way to go about this? Are any examples or tutorials available? 回答1: SQLite databases are completely self-contained files and are portable — you can just copy the entire file straight to the SD card. Though first I'd check whether an SD card is installed in the device, and what its path is (using Environment.getExternalStorageDirectory() ). 回答2: This code works for me!

Backup a GitHub repository

心已入冬 提交于 2019-11-26 00:28:28
问题 What is the best way to create a local backup of a git repository hosted on GitHub, given the following requirements?: The local backup should be a bare repo. The backup should include all branches. It should be easy to (incrementally) update the backup. Basically, I want a perfect mirror, with the possibility to update easily. As such, the command git clone --mirror git://github.com/... comes to mind, but as far as I can tell, that doesn\'t allow for an easy update (I\'d have to delete and

How to backup a local Git repository?

送分小仙女□ 提交于 2019-11-25 22:49:12
问题 I am using git on a relatively small project and I find that zipping the .git directory\'s contents might be a fine way to back up the project. But this is kind of weird because, when I restore, the first thing I need to do is git reset --hard . Are there any problems with backing up a git repo this way? Also, is there any better way to do it (e.g., a portable git format or something similar?)? 回答1: I started hacking away a bit on Yar's script and the result is on github, including man pages

How do I backup a database file to the SD card on Android?

[亡魂溺海] 提交于 2019-11-25 18:55:21
I'd like to add a feature to my Android app that automatically backs up the SQLite database to the SD card . What's the best way to go about this? Are any examples or tutorials available? SQLite databases are completely self-contained files and are portable — you can just copy the entire file straight to the SD card. Though first I'd check whether an SD card is installed in the device, and what its path is (using Environment.getExternalStorageDirectory() ). skeniver This code works for me! try { File sd = Environment.getExternalStorageDirectory(); File data = Environment.getDataDirectory(); if