Prompt stringlengths 14 160 | Instruction stringlengths 18 2k | Response stringlengths 8 2k |
|---|---|---|
Load balancers and SQL backups [closed] |
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 10 years ago.
Improve this question
... |
How about using poundctl to disable and reenable the backend server? It must be run locally (the command protocol uses unix sockets), but you could probably have it launched remotely through an ssh session.
From the man page:
OPTIONS
[...]
-B/-b n m r
Enable/disable a back-end. A disabled back-end will not be ... |
powershell backup script with error logging per file |
Really need help creating a script that backs up, and shoots out the error along the file that did not copy
Here is what I tried:
Creating lists of filepaths to pass on to copy-item, in hopes to later catch errors per file, and later log them:
by using $list2X I would be able to cycle through each file, but copy-item ... |
1
The answer to complex file-copying or backup scripts is almost always: "Use robocopy."
Bill
Share
Improve this answer
Follow
answered Mar 20, 2013 at 20:08
Bill_StewartBill_Stewart
23.6k... |
Backup a database |
I want to backup my DB but I got a error:
ConnectionStrings cannot be used like a method
How can I resolve this?
string strCon = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True";
string sSQL = "BACKUP DATABASE Database TO DISK = 'D:\\Database.bak'... |
1
You should directly use that variable as SqlConnection requires a string object containing a connection string and you are storing it in a string object itself.
So it would be simply like this:
using (SqlConnection connection = new SqlConnection(strCon))
{
SqlCommand... |
Compress files from mobile and upload it to server? |
I have developed an application for backup and restore on IOS and ANDROID!
for backup i am just looping all files and uploading to server directly and to restore, doing the same to retrieve the data's back to phone.
But
1.now i have to compress the files and upload it to server,
2.also decompress it and restore it ba... |
On android you can use the java.util.zip (try Zipping with android) to zip your files and upload to the server and on IOS you can use the ZipFile class (look at this question for an example) to do exactly the same. Zip is a standard so it will work both ways.
|
Excel 2007 VBA to save open workbook as backup without changing original |
I am trying to adapt this code I found online
Sub SaveCopyas2()
Dim newWB As Variant
Dim wb1 As Workbook, wb2 As Workbook
Set wb1 = ActiveWorkbook
If wb1.Saved = False Then MsgBox wb1.FullName, vbInformation, "Workbook Not Saved"
'Set a filename for new workbook
newWB = Application.GetSaveAsFilename(ActiveWorkbook.... |
1
(Answered by the OP in a question edit. Moved into a community wiki answer. See Question with no answers, but issue solved in the comments (or extended in chat) )
The OP wrote:
here is what I got to work.
Sub SaveCopyas2()
Dim newWB As Variant
Dim wb1 As Workbook
Set w... |
How would I copy the gallery, posts & pages from a compromised wordpress install to a fresh one? |
A Wordpress install on one of my servers has been compromised. What's the quickest way to export the gallery, posts and pages in a manner that won't export any back doors along with them? Then how do I import those into the fresh Wordpress installation?
I want to avoid copying any php files as the attacker may have ... |
Wordpress built-in export (WordPress eXtended RSS or WXR) would contain your posts, pages, comments, custom fields, categories, and tags. Images can be donloaded from the old location (must be live) to the new one; be sure to check the "Download and import file attachments" box on import.
If there are galleries manage... |
Does copying the Git bare repo change the log? |
I'd like to try out a few things with git and I don't want to screw anything up in the working repository.
To try to keep things safe, I've made a copy of the bare repo that I work from and from this repo I am intending to do all my pushes and tagging. I used:
cp --preseve -r original.git copy_of_original.git
Althoug... |
The @{5 days ago} syntax relies on information from the reflog, as
explained in the section of the git-rev-parse documentation quoted below.
Reflogs are local to a repository, and never transferred by clone, fetch or
push. This is not the information displayed by git log, unless the -g or
--walk-reflogs option is... |
Restore a MOSS 2007 farm on a new server |
I'm currently trying to move a single-server farm to an other server.
The old server is a windows 2003 32-bit with sql server 2005.
The new one is a windows 2008 32-bit with sql server 2008 r2 (32 bit).
Both MOSS 2007 have the same versions.
What I'm trying to do is to use a farm backup from the old server to restore... |
1
Check technet>
Back up and restore an entire farm (Office SharePoint Server 2007): http://technet.microsoft.com/en-us/library/cc262412(v=office.12).aspx
Share
Improve this answer
Follow
answer... |
How to export or backup Sphinx indexes |
I have a Sphinx install on a server. I would like to copy the data created by sphinx during indexations (basically for backup or to provide exact copy for dev team).
Do I have another solution than copying files from {your_install}/data/*.sp* ?
(In this case, .spl files are protected, but they are empty, are they usef... |
the .spl is only a lockfile - no there is no need to back it up.
I think the only option is to backup the data files as you note.
Note if you have RT indexes, then there might be other extensions (I think .ram). You should also backup the Binlog.
Although do see 'FLUSH RTINDEX' - that makes for cleaner backups.
|
How do I keep the last 4 full backups |
I have a CentOS server running with backup made to an external HDD.
I run a full backup everyday at 4am and incremental backups every 2 hour. I am keeping the last 30 days backups which is achieved by running a cron job every day at 6am which clears all files older than 30 days:
0 6 * * * root /bin/find /mnt/hp/b... |
1
Do like this:
Take full weekly backup with a unique name prefix like weeklybkp_
Then put a script like following in cron after every weekly backup.
DELETEMORETHAN=$(ls -1 weeklybkp* | wc -l)
if [ "$DELETEMORETHAN" -gt 4 ] ; then
COUNT=$(echo "$DELETEMORETHAN - 4" | ... |
Tar: Directory Checksum Error |
I am writing to a HP LTO4 tape drive. But after writing a big file (of the order 30GB) I am not able to write anything after that. I get
tar: directory checksum error
Anyone has any idea what could be wrong?
I am using the command
tar -rvfE /dev/rmt/0 <file.gz>
Need help!
|
Problem resolved by using -i flag.
So now I am using the command
tar -rvfEi /dev/rmt/0 <file>
:)
|
Restoring PHPMyAdmin from Disk |
I have a windows machine that was running phpmyadmin as part of WAMP.
The windows installation broke but I have a full disk backup.
Is there a way to restore a database to a new instillation from the disk without having to do the manual export procedure (as obviously I cant do this!)
Thanks
|
PhpMyAdmin is the wrong place to be focusing. You will need to restore the original MYSQL tables and config.
This Stack Overflow post gives details about where to find these files in a WAMP installation.
|
How to backup Mysql database on Windows 2008 R2 to Amazon S3? |
I've a MySql db running on a Windows 2008 R2 machine. I want to back up my DB every night to Amazon S3.
I'm new to this field, so can anyone guide me through the steps.
Any blog link is also appreciated. Thank you!
|
1
Rather than trying to script it yourself and test it, I would suggest using a commercial package (safer option since they have many customers and tested it under different conditions). One option would be to use software from Zmanda. They have a good solution for MySQL... |
How to stop SQL server restore from overwriting database? |
I have a ELMAH database that I want to script the restore of using the following:
RESTORE DATABASE [Elmah]
FROM DISK = N'E:\Elmah_backup_2012_11_02_030003_1700702.bak'
WITH FILE = 1,
MOVE N'Elmah' TO N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\Elmah.mdf',
MOVE N'Elmah_log' TO N'C:\P... |
1
You need to (a) give the restored database a new logical name, and (b) you need to define new physical file names, so the existing ones won't be overwritten. Try something like this:
RESTORE DATABASE [Elmah_Restored] <== new (and unique) logical database name
FROM D... |
Tips for bringing a development MySQL database back online? [closed] |
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 11 years ago.
Improve this question
... |
Use mysqldump on the live server to get everything. It will create all the necc statements: drop tables, create database, etc. Call mysql with the resulting file (as a < pipe ) into the dev server (after clearing it out, if need be) to have it read everything in.
To keep the dev server in sync with the live, set it u... |
Creating Back up image of Linux using Altiris DS 6.9 SP5 |
I am using Altiris Deployment Solution 6.9 SP5. I want to create a back up image of Linux OS/CentOS. I have created the job using the following tasks:
Reboot to automation
Create Disk Image
Reboot
The jobs is stuck at step 2 as the machine goes on sleep immediately after reboot. It tries to send Wake-on-Lan signal b... |
1
I used the option "Quick Disk Image" (right click on a computer) when i need to perform a backup. Set the job to do not schedule and then configure the task as needed.
Share
Improve this answer
Follow
... |
Source code backup strategy |
I have a "Projects" folder which contains dozens of Visual Studio projects. I want to create a backup for them. First I thought I should copy them all to my SkyDrive or DropBox folders and let them be synced to the cloud whenever there is a change.
The other strategy would be using a source control but I don't want th... |
1
Use GitHub or BitBucket. You have all the benefits of version control and a cloud storage for your repositories.
You can commit changes as often as you like, and only need traffic when you push or pull changes to or from the server. The version control systems are smart e... |
how to open a file by fileID and then use BackupRead API? |
I'd like to open up a file by ID and then use the resulting handle in the Win32 API BackupRead()
Is this possible? I'm not certain if its 'okay' to use handles that come from NtCreateFile() in other Win32 APIs?
For example, may I do this
NtCreateFile(&handle, ..., FILE_OPEN_BY_FILE_ID, ....)
BackupFile(handle, ....)
... |
1
I'm not sure I have 100% understood what your problem is, and I don't know any function named BackupFile().
If what you want is reusing handles from NTCreateFile() with BackupRead(), it should be perfectly fine to do so, provided the file handle was opened with the right... |
unexpected end of file error in mysqldump via php script |
I am just using mysqldump from php script , but it gives error saying unexpected end of file.
Please help , am stuck up.
**Error:**
sh: -c: line 1: syntax error: unexpected end of file
X-Powered-By: PHP/5.2.17
Content-type: text/html
Following is mybackupscript.php :
$command = "mysqldump -u myuser -pm... |
1
The below command is syntactically incorrect.
$command = "mysqldump --all -databases > mybkp/backup.sql ";
It should be
$command = "mysqldump -u myuser -p mypass --all-databases > mybkp/backup.sql ";
EDIT:
Added the -u and -p flag. Ensure that you post your MySQL use... |
Efficient way of restoring ASP.Net site |
Can anyone recommend an efficient way of restoring asp.net sites, currently the steps I take are:
1) Unzip site backup
2) Edit web.config connection string to reflect my local SQLEXPRESS database
3) Restore Database in SQL studio 2008
4) Delete primary user in the database
5) Add the removed user in the Security tab a... |
make a backup of the existing site if you are restoring over a current version (in case changes have been made)
Create any folders required and assign permissions
Create the User/Application pools if this is a new machine
Otherwise seems reasonable to me?
|
Using xcopy to backup to networked hard drive? |
I'm wanting to create a batch file that will back up my computer. This is what I have right now:
@echo off
:: variables
net use U:\\...more stuff...
set drive=U:\
set backupcmd=xcopy /s /c /d /e /i /r /y
echo ### Backing up My Documents...
%backupcmd% "%USERPROFILE%\My Documents" "%drive%\My Backup\My Documents"
ech... |
You have:
net use U:\\...more stuff...
but there needs to be a space between the drive specification and the network share:
net use U: \\...more stuff...
|
Binary Log MySQL |
I have some binary log files from localhost but when i write
mysqlbinlog mysql-bin.000001 > statament.sql
or a text file it just returns gibberish i.e.
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
... |
1
MySQL binary log by definition is logging the data manipulations in binary form to save time and space for processing. So when you examine them, you should add --base64-output=decode-rows option to mysqlbinlog client have the the output decoded.
Share
Improve th... |
Batch IF causing hour not to show |
I have a script that does a simple XCOPY routine for backing up all our corporate files:
@echo off
IF %time:~0,2% GTR 7 (
IF %time:~0,2% LSS 21 (
XCOPY "R:\Sage Src" "S:\lastdata" /D /Y /E /R /K /C /H /I >> S:\sageBackupLog-%date:~-4,4%-%date:~-7,2%-%date:~-10,2%-hour%time:~0,2%.txt
XCOPY "R:\importantSt... |
There are two main problems here.
First of all, change your set command into this: set hour=%time:~0,2% (hour without enclosing %-signs)
Next thing is, that times with a single digit hour value like 9:00 o'clock will be printed like:
" 9:00:00.00"
with a leading space in front of the first digit. This is the reason f... |
Can someone from Heroku confirm my backup script doesn't violate their terms? |
Following on from this earlier question, I've had a look at the Heroku client gem and written a Python script that performs Postgres backups on Heroku in the same way as the pgbackups addon.
Since the removal of the auto-month option on the free database tier I wanted a way to perform backups automatically via Heroku ... |
Yeah that's fine, just keep it to like once a day. We run wal-e for continus protection on everything. Also please know while you can figure out the API for pgbackpus easily enough, it is not public and subject to change at anytime. I've broken it on people who scripted in the past, not on purpose or vindictively, but... |
Backing up uploaded document on Linux |
So I have a PHP application running on linux machine which is using a mysql database. I have manage to add the back up my mysql database every day by adding a code in the CRONTAB. In my application clients are able to upload document, of which a saved in a directory in the application folder ie /myapp/uploaded_documen... |
The best way is to use rsync, as you would be uploading (most likely) changes only.
http://linux.die.net/man/1/rsync
Additionally you can create incremental backup:
http://www.mikerubel.org/computers/rsync_snapshots/
So my suggested solution would be rsync + crontab
|
Taking backup in Solr |
I have a doubt in Solr database backup. I want to know the number of records has been transferred from source to destination. Is it possible?
|
1
You need to take a backup of the data folder. that's it.
Share
Improve this answer
Follow
answered Aug 30, 2012 at 10:34
StackistStackist
1111 bronze badge
5
Adding the ... |
Backup / Restore Coredata (sqlite) |
I have a standard iOS coredata application (sqlite). Users are requesting that they be able to backup and restore from backup their data. Can anybody tell me how to do so? Or some links where this is explained in detail? I don't mind using iTunes file sharing but would like to know how to implement this.
Also if the ... |
1
I recommend iCloud. iCloud API is intended to work with Core Data sqlite databases. For more information read Using Core Data with iCloud Release Notes.
Share
Improve this answer
Follow
answere... |
recovering the deleted python script file |
How can we recover the deleted python script file(deleted using rm), say lostfile.py in debian linux box?
The file system of the linux box is jfs
|
1
This is probably not going to help you right now, but the best way would be to redeploy the script from its original source or to restore it from version control or from a backup.
Share
Improve this answer
Follow
... |
vBulletin merging old database and new database |
How to merge old database with new database?
I need to add all stuff (topics, comments, users and all info) from one db to other...
vBulletin 3.7.3 (both dbs)
|
1
You can use ImpEx. https://www.vbulletin.com/docs/html/impex/
Share
Improve this answer
Follow
answered Aug 15, 2012 at 14:54
OldErOldEr
5122 bronze badges
Add a comment
|... |
Copy files with cp (unix) but skip files which can't copy |
i have to backup exiting /dev/sdX but cp hangs on one file (/proc/kmsg). It can't skip it... Just hangs like it's copying a 34KB file.
So how can i skip this file?
|
1
You can copy files with Midnight Commander and then press skip button if you see that the file copy is stalled.
If you have just one file, it works perfectly. However, if there are too many files, it is hard to do manually. I wrote a bash script to deal with such situati... |
PHP MYSQLi - Backup column data (into another table/column) before updating column |
I am working on a system which keeps track of what was in the field, prior to it being updated. I'd prefer using a table for the previous data, but am open to other options. This is some sample code which would accomplish the task :
<?php
$initial_value = $_POST['some_value'];
$id =231212213; // some id
$stmt = $mys... |
This is a pure mysql commands solution which you could modify your code to do:
1.) CREATE TABLE new_table_name LIKE old_table_name
2.) INSERT INTO new_table_name SELECT * FROM old_table_name
Done. ;-)
This way you have an exact backup of your table previously, and joins are very easy to see the differences:
SELECT a.... |
Backup websites with database in ubuntu server |
I am having one ubuntu local server in which we used to have all our development websites. They all are php based sites. I would like to know whether we can have script or something to cron backup the files and database daily to external harddisc ?
Please let me know.
|
1
Here is the list of services, which should help you
http://jarvys.io - command line tool/service, that provides server backup to the cloud, simple restore process.
https://bitcalm.com - SaaS for the Linux server files and DBs backups. It has web ui to configure and manag... |
Is it possible to create backup jobs on SQL Server 2008 R2 Express with SMO |
In our software because the users are using SQL Server 2008 R2 Express, I would want to create backup jobs for them programmatically using the SMO API. Is it possible? If possible point me to any articles written on this light of this topic.
|
Since the Express versions don't have the SQL Server Agent that executes jobs - no, I don't think this is possible.
What you could do however is create a standalone console app that uses the SMO library to perform the SQL Server backup, and then just schedule that console app on your machine using the built-in Windows... |
Small MySQL database backup interrupts TCP traffic |
I have a system I'm developing as follows:
-At any one time, three or four clients which are pumping data to the central server over a TCP socket.
-A Windows 7 Pro, 2.4ghz Dual-Core Xeon server with 4gb (soon to be 8gb) of RAM, which houses both an C# ASPX web application that receives the client data, as well as the ... |
1
Have mysqldump create a local file, then use rsync with the --bwlimit option, or robocopy with the /IPG:n option to copy over the file to the network share:
@echo off
echo Running dump...
net use z: \\BackupComputerName\SharedFolder >c:\debuglog.txt 2>&1
cd C:\Program Fil... |
Getting server information with only FTP access |
I'm in the process of re-installing a backup of a PHP script on a new server.
The previous web developer has gone missing in action and he has yet to release the domain in that's under his management.
So for the new server they only provided me with mySQL details and FTP access. They say they don't have temporary test... |
Well, IF apache (or whichever webserver) on that IP is already configured for your FQDN (which you couldn't set to the new IP yet), then you could upload a PHP file with a phpinfo() call. Afterwards you could telnet onto the known IP port 80 and send
GET /[PHP-File] HTTP/1.1
Host: [Your FQDN]
So e.g., if your FQDN wa... |
Start Akeeba Backup Using a Cron Job |
we are using Akeeba Backup for backing up our Joomla website. It is possible to start a backup just by calling an URL as described here: https://www.akeebabackup.com/documentation/quick-start-guide/automating-the-backup.html. To automate the backup of our site we want to call this URL using a daily executed Cron job. ... |
1
It suffices to read the documentation. It tells you exactly how to use wget or curl for use with a CRON job. Moreover, there is a section called "A PHP alternative to wget". I write the documentation of Akeeba Backup and make available free of charge for a good reason: to... |
ignore mysql tables in backup script |
I am following the guide at this site and trying to exclude databases with the name turnkey in them.
find /var/lib/mysql -mindepth 1 -maxdepth 1 -type d | cut -d'/' -f5 | grep -v ^mysql\$ | tr \\\r\\\n ,\ `
this command returns all the database names, how can I remove the turnkey ones?
|
The command you show is a Linux / unix shell command. If you add another step
grep -v turnkey
you will omit any lines with the word "turnkey" in them.
Like so:
find /var/lib/mysql -mindepth 1 -maxdepth 1 -type d |
cut -d'/' -f5 |
grep -v ^mysql\$ |
grep -v turnkey
tr \\\r\\\n ,\ `
You didn't ask if this is a g... |
How to take database backup form WSO2 Stratoes Live Data Services Server |
I have created database on the Stratoes live server and my databse URL is this.
jdbc:mysql://rss1.stratoslive.wso2.com/karshamarkuptool_karsha_opensource_lk
I tried Database Console> Tools> Back Up and it asking me these credentials
Target file name:~/backup.zip Source directory:
jdbc:mysql://rss1.stratoslive.... |
If you have mysql installed in your local setup, you can get a backup as just as the same way that you would take a backup of a database that resides in your local database server. For example, the following command would get you a backup of your database that you created under the RSS manager of StratosLive Data Serv... |
How to restore a slave from a mysql backup? |
I'm running MySql 5.1. I have Master and a Slave on 2 machines and I set up replication.
I do periodic backup on my slave server. I stop mysql, I copy all the files and I restart mysql.
In case I lose the Master, I can set up a new one from the last backup.
What If I lose the Slave? Can I restart the slave from the la... |
1
The way I solved this problem was:
Take monthly (or weekly/daily) backup, reset master so it restarts the log files. Pipe backup to the master so it refills the database one table at a time. Restart the slaves.
I had many more slaves and the table reloads didn't take too ... |
Restore to remote database from my local machine |
I am registered at Go Daddy and want to restore the database there from my local machine. The tool they provide me with doesn't work unless it's from them. I'm trying to restore from my local SQL server, but when I browse I can't restore the local files of the remote database.
|
1
They're intentionally preventing users from restoring backups that are "foreign" to them in order to satisfy an obscure Microsoft security recommendation.
You will have to perform a schema comparison and a data comparison between your local machine and the empty database... |
When is Android's backup service not available? |
The document here states that:
'Data backup is not guaranteed to be available on all Android-powered
devices'
Are there any examples of when the backup service is not available on a device? Is the backup service guaranteed to be there if the user has installed the app via Google Play (i.e. they have a google accou... |
1
Well, for one thing, it requires API Level 8 (Android 2.2) or greater, so currently about 6% of devices with Google Play can't use it. Otherwise, I think it's a safe assumption that the vast majority of devices with 2.2+ and Google Play have access to it.
Share... |
Creating a PHP CMS with an entry backup/restore option |
I've been working on a CMS and wanted to add a backup/restore function. I want it to backup a saved entry every other time it is edited so that if a client makes a change they are unhappy with or screws something up they can go back and choose a previous state to restore from.
The problem I'm having is trying to wrap... |
Version control at the table level is usually done by adding a version column to your existing table. So if you had a posts table you would add a version column with a simple int or date value. Every time a post is edited a new record is inserted and the version number bumped. You can reference this version number in ... |
Drupal Backup and Restoring |
So I wrote this script that basically creates a sql dump of the the drupal databases as well as created a tar of of the www directory. I took this off the server and put it on my local machine. I want to take these backup files and test to see if the backup is stable as well as to learn the process.
My problem is that... |
You need to have a LAMP stack installed on your local machine. In addition, you'll need to modify the settings.php file to change the database connection strings to match your local enviornment. Youi may also need to modify the $base_url variable in the settings.php.
THis would not be necessary if you were simply... |
Magento Import Customer Error...Now Applicatiion itself not running? |
My magento site which was working fine before an hour now giving error as I have imported
customer data from csv file with REPLACE Esisting Complex Data mode as we want to update some of our customer data.
but when I tried to add product into the cart from frontend with existing customer it gives me error as-:
Item (M... |
Reverting is fairly simple create a new database and call it another name so say your current db is magento1 create magento2 with your backedup data, and make sure your current magento db user has rights to the new database.
Now edit app/etc/local.xml change <dbname><![CDATA[magento1]]></dbname> to <dbname><![CDATA[m... |
Can server snapshots potentially damage MySQL transactions? |
Let's say your taking daily snapshots of your server as a whole (public_html, sql files, etc) for later restoration in case of system failure.
Is it possible that you can restore damaged a MySQL InnoDB if you took the snapshot while an uncommitted transaction was taking place? Or will InnoDB do just fine and discard "... |
From the databases viewpoint we are dealing with an unclean shutdown (i.e. power went off) and a lost connection so it will discard all transactions that are not committed.
If you are taking a snapshot of the server that's just like freezing everything in a cryogenic sleep, then after a restore the database would just... |
Copy SQLite db to Storage device for backup purpose |
I have an application in which I am updating my SQLite db file, but every time when the user uninstalls this application this db file is deleted and at reinstallation a new db file is created. I want to copy this db file after every update to a micro SD card so that after uninstallation I could be able to access my da... |
Sudo code to copy the database to SD-Card. To copy it back, simply reverse the streams.
public boolean copyDatabase() {
String SDCardPath = Environment.getExternalStorageDirectory().getAbsolutePath();
// Create the directory if neccesary.
File directory = new File(SDCardPat... |
rsync include files from specific folder? |
I have a directory structure as follows
Client_Site/
some_folder1/
some_folder2/
some_folder3/
Lots of files
some_folder4/
Client_Site2/
and so on. I want to target the some_folder3 within the directory structure of each client site and only backup that folder with rsync, but maintain the rest of the directory str... |
I believe you have to do it in two steps. Something like:
rsync -dv * remote:dir/
rsync -rv some_folder3 remote:dir/
Read The Fabulous Man page.
|
Failover strategy for database application |
I've got a writing and reading database application holding a local cache. In case of an application server fault a backup server shall start working.
The primary and backup application can only run exclusively because of its local cache and some low isolation level on the database.
As far as my communication knowledg... |
Can you set up a third server which is monitoring both application servers for health? This server could then decide appropriately in case one of the servers appears to be gone: Instruct the hot standby to start processing.
|
Get SQL Server database backup size in .Net |
We want to take db backups programmatically. For this we used the SqlServer.Management.Smo namespace and its classes, and it is working perfectly.
Now we have a requirement to determine whether there is enough space is there in the location to hold the backup files before saving the db backup to the specified location... |
1
There is no way to get the exact backup size until you try backing up the database.
Approximate size can be guessed at by looking at database file sizes. This is useful if you have no idea how big it will be and you need to "publish" some estimate to the unfortunate user... |
Backup MySQL on Apple time machine |
not sure its a stack overflow question
I have a Mac and am hosting a Apache MySQL server on it using MAMP Pro. If I back up my data on the time machine, is MySQL database also backed up or do I have to create mysqldump and backup up as a cron job? In case of a crash do I do a normal restore in case it can be backed up... |
Make a regular dump with MySQL dump or use another specific database back-up tool. A copy of the data folder is not ok.
MySQL dump will really read the data and can be checked. It is not always true that all data is written completely to the data file and lockings give issues.
If you have a specific time of back-up ju... |
Backup in not getting restore |
I have taken a backup from a database(Sql server 2008 R2).But in machine i have
Sql server 2008.When i am trying it to restore that backup in machine then it is
showing Error.Following is the error message==
The database was backed up was running on a server running version 10.50.1600.
That version is incompatible wi... |
You can not restore a later version backup to a previous version. SQLServer 2008 R2 is the later version. Your Alternative is to script out all data and database objects and run those scripts on SQL 2008.
How to Script out your database
|
Is there a way to have a secondary storage or backup for data blocks in Hadoop? |
I have Hadoop running on a cluster that has non-dedicated nodes (i.e. it shares nodes with other applications/users). When the other users are using a cluster's node, it is not allowed to run Hadoop jobs in that node. Thus, it is possible that only a few nodes are available in a given moment, and that this few nodes d... |
I am not aware about such a "mixed" storage mode for the hadoop. So I do not think that your scenario is directly supported by hadoop.
For me it looks like you need more "elastic" solution. If EMR would be available open source - it might be good choice - where NAS would play the role of S3.
I would suggest the foll... |
How to verify a file before backup? |
I have heard that Duplicity is a nice tool for doing incremental backups.
The only thing I am concerned with is verification.
How does Duplicity check the backup for being consistent before it syncs it to a server? Does it actually do this?
It would not be nice to find oneself facing a corrupted backup file issue when... |
of course can duplicity verify existing backups. it just does not do this as it assumes that you are sensitive about traffic costs (s3 etc.).
simply do as described in
P.S. I have found this, but it is used to see "what files, if any, have changed since the last backup" and not to verify the integrity and consistency... |
How can I backup a website with multiple folders via Git? |
I have a website with multiple folders that have different purposes on the site. Think
/
/forum
/drupal_site
/contact
/about_us
Now how should I handle backups for these? Should each folder have its own repository? Should there be one for the entire site? Is Git the way to go in the first place?
Does it not ... |
You have the flexibility to do a few different things here, but I think starting your repo at the root / and tracking your files recursively is the way to go. Git will pick up the files in your subfolders.
The key advantage to this is that you basically have snapshots of your entire app, and can easily checkout the re... |
How to delete a specific type of files after x amount of days? |
I have a service that produces .txt files to a folder every 30 seconds. Is there anyway to delete files that are older than x amount of days?
|
1
In your service you can loop through the list of files, find the ones that are x number of days old and delete them.
See the File, FileInfo, Directory and DirectoryInfo classes on MSDN.
Share
Improve this answer
Follow
... |
How to backup relevant files? |
My app is getting to the point where I will be highly perturbed if I lose the source somehow. This is a personal / single developer project, so something like Subversion might be overkill. I'm thinking more along the lines of the "Backup" agent that is a part of the GExperts add-on in the Delphi world. Is there such a... |
In my opinion using a version controll system is not overkill at all. You can keep hand on changes all the time. Making features that you don't even know whether to include or not into main branch. Not only features but every complicated task also, for example refactoring. With VCS that's no problem to make fast fix t... |
Create MySql Database Backup / Rollback |
I understand that I can use MySql's command BACKUP and RESTORE to backup a database and rollback when needed.
My question is, would I be able to execute it this way:
sql="BACKUP my_db TO DISK my_backup_folder WITH FORMAT #";
if ($stmt = $this->connect->prepare($sql)) {
$stmt->execute();
$stmt->close();
} else {
... |
A quick peak on the command line shows these are deprecated commands.
mysql> help backup; Name: 'BACKUP TABLE' Description: Syntax: BACKUP TABLE tbl_name [, tbl_name] ... TO '/path/to/backup/directory'
*Note*: This statement is deprecated and is removed in MySQL 5.5. As an alternative, mysqldump or mysqlhotcopy can b... |
Fixing my datastore admin? |
I have datastore admin enabled in one app and the backup system seems to work or at least it reports being launched as mapreduce jobs in the queue. Now I want to make that for my other app but the admin console fails when hitting the datastore admin link:
These are my settings from app.yaml:
builtins:
- remote_api: on... |
It looks like datastore_admin was removed for Python 2.7. For more details:
http://groups.google.com/group/google-appengine/browse_thread/thread/32db6e9e8e55a5c6?pli=1
|
Android: Gaining access to other app files through app on non rooted phone |
Does anyone know if it is possible to access the data files from another app on your app? Really just copying a directory plus contents. This is for a backup system. I am trying to create a backup system that works decently on non rooted phones. I currently can only copy data from my own app. I can't navigate further ... |
1
No. AFAIK, Not possible on non-rooted phones. Android restricts access to only your app specific content.
Share
Improve this answer
Follow
answered Jan 12, 2012 at 2:49
kosakosa
66.3k1... |
PHP Backup Script to backup public_html only |
$filename= "Backup.tar"; // The name (and optionally path) of the dump file
$ftp_server = "IP"; // Name or IP. Shouldn't have any trailing slashes and shouldn't be prefixed with ftp://
$ftp_port = "21"; // FTP port - blank defaults to port 21
$ftp_username = "User"; // FTP account username
$ftp_passw... |
you just need to change the third input of the tar command
$filename= "Backup.tar"; // The name (and optionally path) of the dump file
$ftp_server = "IP"; // Name or IP. Shouldn't have any trailing slashes and shouldn't be prefixed with ftp://
$ftp_port = "21"; // FTP port - blank defaults to port 21
$ftp_... |
updating Mysqldump file |
Is there a way to update a mysqldump file?
Let's say I created a dump file for a table that archive the data over 3 month old and remove those archived records from the original records. And I want to update that same file every week with the new data that expires and retaining the old archived records. I know there a... |
The purpose of a database dump, or of any backup data, is to provide a snapshot of what the database looked like at a particular point in time so that if something catastrophic happens you can revert to that version of a database. If you make changes to the database and want a more up-to-date dump that reflects those ... |
What encryption algorithm preserves file differences? |
I would like to encrypt a file with most secure algorithm that also meets the following requirement.
Let's say we have a text file that has 100 Bytes and we encrypt it.
Now we change 1 byte in original file and encrypt again.
If we make a diff of the encrypted files then ideal encryption algorithm should produce the ... |
1
If you use CTR (counter) mode, I believe you will get the result you require.
Share
Improve this answer
Follow
answered Dec 26, 2011 at 17:23
Jonathan LefflerJonathan Leffler
741k142142 ... |
My sql database backup in a .SQL file on client side? |
i am creating a small tool using C# and MySQL, this tool has a small db in MySQL i want to backup the DB as a .SQL file that i can again load to MySQL when needed.
the problem is how to get .SQL file on client side using any query etc. and load it back to db.
i don't want to use sql dump or any other method for which ... |
All object definitions you can get using SHOW CREATE TABLE, SHOW CREATE VIEW, SHOW CREATE TRIGGER, ... and so on; all objet names you can get from information_schema system database.
Only 'INSERT INTO table' statements you should generate itself.
|
How to use Cloudberry Powershell Snap-in (for Amazon S3) from within a scheduled SQL Agent Job? |
I am trying to automate my SQL database backup process. My goal is to use the Cloudberry Powershell cmdlet to give me direct control and access over my S3 buckets. I am able to do this manually but cannot get my SQL jobs to work with this.
According to Cloudberry's installation instructions, I shouldn't have to regist... |
1
You could use Amazon AWS .Net SDK. You can download it from here:
http://aws.amazon.com/sdkfornet/
Here's the example function to download file from S3:
function DownloadS3File([string]$bucket, [string]$file, [string]$localFile)
{
if (Test-Path "C:\Program Files (x86)"... |
Is it possible to restore course backup from Moodle 2.x to Moodle 1.9(8)? |
So that is the question. I need it because I create my course in Moodle 2.1 but there is Moodle 1.9 installed in my University. So I need the way to export/restore my course to older Moodle version. Thanx for any help.
|
From my knowledge, it's not possible to restore a 2.X backup to 1.9.
|
copying data between servers on two different machines - SQL |
I found this question Copy table to a different database on a different SQL Server which is close to what I want but my two databases are on two different machines. I am interested in backing 1 or two tables, not the whole database. I tried BCP backup and bulk insert but I am consistently getting error on importing d... |
1
Have you looked at using linked servers? We had a somewhat similar data consistency issue and used a linked server setup to provide for triggered data propagation. Once you have the linked servers defined you can issue your statement pretty much as you have it listed in y... |
Web Server being used as File Storage - How to improvise? |
I am making a DR plan for a web application which is hosted on a production web server. Now that web server also acts as a file storage for storing the feed uploads files (used by the web application as input) and report files( output of web application processing). Now if the web server goes down , the files data is... |
1
I've successfully used Amazon's S3 to store the "output" data of web and non-web applications. Using a service like that is beneficial from the single-point-of-failure perspective because then any other instance of that web application, or a different type of client, on t... |
Backups for my site, file and/or SQL |
I need to find a good backup solution for the site I have hosted with HostGator. HostGator only backs up sites with less than X number of files. Unfortunately I've exceeded that limit and they aren't backing up my site any more.
This means that right now i have no database backups. I do have backups of all the file... |
Mysqldump is a simple and reliable way to do backups.
Explore the documentation:
http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html
If you want to copy your dumps on another server, you can write a bash script that copies dumps over ssh.
Here are some links that may help you:
http://www.cyberciti.biz/tips/howto-co... |
Incremental archives backup batch script |
I have an Oracle archives folder on windows, which I need to take an incremental backup everyday at 6:00AM.
I need to copy all the files generated during the previous day, and place them in a folder with today's date.
What is needed is that, the files generated after the last backup was taken, only should be copied [i... |
xcopy provides methods for copying files based on their Archive attribute. The option you would likely want is /M, which copies only files with the Archive attribute set, and resets that attribute. It kind of relies upon the Archive attribute being set, but Windows does this by default (I think) when creating or mod... |
AppleScript - Get information of .eml file |
I write an AppleScript to backup all my emails. A lot of emails I have already saved as .eml files on my local hard drive and deleted them from the server. Is there a way to load the .eml files with AppleScript as message to get the date sent, subject etc. of them?
|
How about something like this :
set fromField to text 7 thru -1 of (do shell script "cat /test.eml | grep From:")
set dateField to text 7 thru -1 of (do shell script "cat test.eml | grep Date:")
set toField to text 5 thru -1 of (do shell script "cat /test.eml | grep To:")
set subjectField to text 10 thru -1 of (do she... |
Is iOS 5 iCloud Backup save webkit data for app using the storage of a UIWebView? |
I have a phonegap iOS app using the sqlite DB of Webkit (through UIWebView), and I wonder if the sqlite data will be saved with iCloud Backup (iOS5). The sqlite data are stored in Library/WebKit folder. In the apple doc, they say:
The placement of files in your application’s home directory determines what gets backed ... |
Library/WebKit is included in the backup. With the exception of Library/Caches, everything in the Library directory is backed up.
The data included in an iCloud backup for your app is identical to that included in an iTunes backup, so you can examine the contents by backing up to iTunes and using a tool like iPhone Ba... |
Partial database recovery on Heroku |
Thankfully this is a hypothetical, planning-ahead sort of a question. Can you restore part of a database using Heroku's backup addon, or otherwise? So, for instance, only restore records in all tables which have a client_id of 5?
|
No, that does not appear to be a feature included in the PG Backups addon provided by Heroku: http://devcenter.heroku.com/articles/pgbackups#restoring_from_a_backup
|
Use PHP script to backup database without using Mysqldump, any recommended CLASS? |
Unfortunately, the hosting can't use mysqldump command.
|
phpMyAdmin includes this functionality. You may want to look into how they do this.
|
Delphi: save a folder with files using Synopse Big Table |
How can I save a whole folder with it's files and folders using Synopse Big Table? I need to make a backup of my files without compression. I heard that Synopse Big Table is good for this purpose. But I couldn't find info to accomplish that.
Thanks!
|
Why didn't you write this question in the library forum?
OK, here is some sample code:
function SaveFolderToBigTableFile(const aFolder, aFile: TFileName): boolean;
var SR: TSearchRec;
BT: TSynBigTableString;
aPath: TFileName;
Path: RawUTF8;
begin
DeleteFile(aFile);
result := true;
BT := TSynBigTableS... |
Txt, XML or database for backup and restore purpose? |
I'm trying to backup & restore SMS and contacts informations and wondering about the way to do that. Keeping in mind that:
I want a lightweight app
Regarding to reading/writting delays and mechanisms specific to each files type
I'm looking for the easiest way to do this backup and restore process.
Which one of .tx... |
1
u can use sqLiteDatabase.which is very easy to use.all the things r handled with cursor.which means at a time indicating a single row in a database.check this link:
http://www.anddev.org/novice-tutorials-f8/working-with-the-sqlite-database-cursors-t319.html
Sha... |
Problem with Android backup file? How to read it? [closed] |
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
... |
Android Backup is a cloud based service. There are no locally stored backup files. The backup service stores them somewhere in the google cloud.
|
MySQL DB Backup - Secure way |
I want to schedule a cron job that either uses mysqldump directly, or calls a script that does the mysqldump. My question is since mysqldump requires a password to be supplied, is it secure to do mysqldump directly as a cron job? If not, while using a script, what's the most secure way of protecting the password?
|
I think you should:
Create file which will store you login/password and set minimal permissions on it.
Create bash script/php/perl script which will run mysqldump command and read settings from this file.
Set this script to cron.
But if you run cron under root so you can specify user/password directly in cron becaus... |
What's the simplest way to efficiently backup and especially undo UPDATE operations in a MySQL db? |
I figured it would be easy to just insert a new row in some sort of history table using PHP, (containing date, table, column, value etc) on each UPDATE operation, but having MySQL do that automatically in some way would be way more efficient.
Also, the restoring part could be simply a (quite unefficient) PHP script, u... |
MySQL Reference Manual :: Using Triggers
|
Copyfiles from Directory Tree to Flat Folder - Keep most Recent |
I am trying to create a batch file that will allow me to copy files that are scattered across several directories into a single location while maintaining the most recent copy available.
This is for a Windows machine.
For example...
C:\Base Files\*.jpg
C:\Base Files\Sub\*.jpg
C:\Base Files\Sub2\*.jpg
and copy all of ... |
1
Well, if we change "maintaining the most recent copy" by "copying only the modified files", then this command do that:
xcopy "C:\Base Files\*.*" C:\Backup /m /s
Regards...
Share
Improve this answer
Follow
... |
Backup-SPSite gives an error: "Operation is not valid due to the current state of the object" |
I got a backup of a Sharepoint 2010 site that I created from our client's production server so that I can make some new changes to it on my staging server.
I can restore the site collection from the backup without a problem but when I try to create a backup of the same site on my staging server, I always get the error... |
The backup process started working after I checked in a file that had been checked out by a user on my client's production server.
I found out what file that was by opening the corrupted backup file and looking at the title of the last entry.
|
iPhone: Saving picture/data to "public" folder? |
I want to implement a backup feature in the app I'm working on, that simply puts an image and some data in a folder that can be accessed through itunes or similar.
But is this possible, and what can be done?
Point of the feature is that if (for some reason) the image and data isn't sent to my server, the user will h... |
Enabled iTunes file sharing in your app's settings and then write your file to the Documents folder in your app. This will then allow them to see the file through iTunes.
|
How can I create a backup of my Exchange emails? |
I have a Microsoft Exchange account through my college, and my mailbox is very close to full. I'd like to download the messages to my local machine and archive them so that I can access them later if needed.
It seems to me that I should do something using POP3, but I have no idea where to start.
Note: I am currently ... |
There is a free product called MailStore that should do the trick. Find it at http://www.mailstore.com
|
online backup solution with api for desktop |
I made a small backup application that simply creates an archive out specified files and folders. Now I need an online service to backup that online. Which service can i use that can be integrated into my app ?
Options I considered:
dropbox is ideal, but they have all but abandoned the desktop.
skydrive has no api.
... |
1
In your case, Amaxon's S3 seems more fitting but that's not free.
Depending on your target audience, you can create a local archive and have that picked up by your regular backup solution. You might try Wuala,or SpiderOak. Expand Wuala by adding your own space. Spideroak ... |
What kind of script can I use to update an application? |
Lets say I am updating an application and have updated 10 files out of a 100. I made these changes on my test machine and is working but now I want to commit these changes to the production machine. What kind of option do I have.
Ideal scenarios would be.
I save the existing files that I am replacing
I copy new files... |
Your description makes it sound like you want to control your revisions. Use a Revision Control System like SVN or Git (http://en.wikipedia.org/wiki/Git_%28software%29).
At a high level, once you make changes to your code, you check those changes in and get a revision number that specifically identifies the most curre... |
How do you move users/posts/settings from one vBulletin installation to another? |
I have a vBulletin installation that was recently defaced as a result of a sql injection flaw in the VB search interface. I'd like to move all of the posts/threads/permissions/users from the old database to a new database in which I just freshly installed vBulletin. Their impex program won't help with this, as it seem... |
Well, as ImpEx does not support it, you may install another forum software (phpbb, smf, ipb), import your data to this installation using their tools which likely support importing from vb4, and after that import content from this installation to your new vbulletin 4 installation using impex.
There are some disadvanta... |
does it make any sense save a Visual Studio Projects in SharePoint Online Portal? |
I am trying to save a Visual Studio 2008 project to a SharePoint library as a backup.
I dont know how. Please explain me if it does make any sense and how it is possible to import huge project with a lot of files into EMEA online Sharepoint 2007 Portal. I dont have MOSS, just WSS 2007.
|
My gut instinct tells me this is not a good idea. It might be a better plan to save a link to where the VS 2008 back up is on Sharepoint, but adding a huge load of data to any sort of storage device is always going to be a bit fraught.
For example, whilst you can save images and files into SQL Server directly, most pe... |
DB Backup runs in Debug but not Release |
I have a small c# wpf app for doing some simple calculations running off a Sql Express 2008 R2 db, and in the setup section is a backup button that runs the code
using (DTZDataContext db = new DTZDataContext())
{
db.ExecuteCommand(string.Format("BACKUP DATABASE DtzDb... |
My bad... It turns out VS had changed the DataContext connection string to DTZConnectionString1 and made another settings file. Now I am using the correct connection string it is working fine.
No idea why the incorrect one worked in debug but not release.
|
c# express back up/restore database |
I am completely lost here and I am running out of time. Let me explain my situation:
I have created a software in C# express 2010 and SQL Server Express 2008 R2.
Now in the settings section of my software, the user is supposed to be able to make manual back ups/restores of the database.
Also he is supposed to be able ... |
You could look at this C# example for using SMO to backup the database
http://social.msdn.microsoft.com/forums/en-US/sqlexpress/thread/95750bdf-fcb1-45bf-9247-d7c0e1b9c8d2/
The other option is to run a process and call sqlcmd from code
http://www.sqldbatips.com/showarticle.asp?ID=27
Here is some sample code to execu... |
backup database takes login and user backups or not |
i am using sql server express and visual studio on my office PC.
i have a database abcDB. i created a login abclogin with password = 'abcpass' , default database =abcDB ,
now a winform application, is allowed access to abcDB when correct id and password is supplied via textbox.
if i want to use the same application o... |
Those things like logins are stored in SQL Server master tables - they are not part of your backup of abcDB.
Users on the other hand are part of your database, so they get backed up together with your data.
So when you restore your database on another computer, your database will contain the users, but if they depend ... |
Perl Backup Script Advice and Examples Please |
I am trying to create some backup scripts written in perl.
I am just after some examples best practises etc..
Problem:
Backup files and directories from various locations on a system, is it better to move to a temp location then tar and zip them? or just do it from where they are?
Hope someone can help.
Thanks!
|
There are approximately six million backup scripts floating around the web.
Here is one I wrote about eight years ago, it still works for me.
|
progress bar whats actually happening |
I know this is a rookie question but whats actually happening with a progress bar what is it actually monitoring.
I figure the only way to understand it is to get this answer.
when i run a piece off php code how can i get a progress bar to monitor it while it runs untill completion off the code??
most progressbars i h... |
You wouldn't be able to monitor something like that - you're exec()ing an external program from PHP, so PHP is suspended while that external process is active. As well, tar can't report in advance how much there is to do, it can only report on what it's done or is currently doing.
A progress bar works on the basis of ... |
C# Backing up data to file which can be restored later |
I'm looking for some feedback as to what is the best way to back data up from a sql server database which can be restored at a later date. This back up needs to be in a file which the user can use to restore data at a later date.
Does anyone have any ideas or examplea as to the best way to do this using C# and Sql Ser... |
If I understand properly, you want to audit just some of your data for changes (as opposed to having a full DB backup) and to be able to selectively roll them back to a previous state.
If that's what you want to do, you may do that from within sql by using a "audit" table and populating it via triggers on the table wh... |
How to backup Core Data sqlite file with image for my iphone app? |
I use Core Data to store the URL path of the image file in my document, how to backup both of them to mac/PC, I copy the sqlite file and the image out through iTune, and when I copy them back to iPhone, the sqlite seem to be ok, but the image didn't show up. I think the path has changed.
what can I do?
|
1
I have done something similar. Two things were key to making this architecture work.
The image files must be stored in a consistent location relative to the Core Data store file.
The URL/path stored in Core Data for the image is a relative one, not absolute. The image pa... |
access mySql database on file basis |
Okay, heres a easy one for all you mysql folks out there:
Our Win 2003 server crashed last night (durring installing of windows updates). We were able to restore old data from backup, but we miss 22 hours of data. We cannot start windows and therefore not access the data through mySql admin which is the program I use ... |
If you don't have binlogs enabled, or cannot be sure at which point your backup snapshot was made trying to get the datadir running in another server is about your only option. (Which for maximum possibility of recovery should be as much like the original as possible in MySQL version and other environmental data).
If... |
Cross-platform File sync tool |
I am developing a webapp that will be used on LAN mostly. I have different locations where I deployed this app. Some of the locations run windows and some run linux (no x-window system). I need to know if there is a software out there that could easily synchronize my files stored somehere in the cloud (the clouding se... |
Dropbox is available for Linux.
You could also investigate unison.
|
Extract data dumps from .sql file |
I've got an .sql file, it's an database backup from four years ago. This .sql file is filled with table creations but also data dumps. Because I actually don't need and want the data I'm looking for an way to extract all the data dumps from the .sql file. So that I'm only restoring the tables architecture.
I think the... |
1
@Boyd: Import the dump file locally using
mysqldump -d -h localhost -u root -p thedatabase > dumpfile.sql
Then export just the structure using
mysqldump -u username -p --no-data thedatabase > newdumpfile.sql
Share
Improve this answer
... |
why rdiff backup needs to be installed on server end as well? |
I am newbie in working with rdiff.
I am taking the backup using rdiff from client to server end.
can anyone tell me why we need to install rdiff backup at server end as well?
hwo it works?
rdiff access file systems of connect to the rdiff on server?
|
1
The suggested solution with mountable file systems are barely usable though. And that is exactly why you need rdiff on the server, as it makes delta calculations and optimizes the throughput by sending only information needed as a result. Otherwise why even bother using r... |
Restore sharepoint 2010 web application on different domain |
We made a backup of a web application through the central administration to move it to a different server on a different domain and it's a domain controller actually.
So we made a restore operation on the destination server from the central administration but never managed to succeed.
with errors like: Object failed i... |
Two things:
Did you try with "New Configuration" option while restoring? I believe the problem is related to the users/groups added to the site and those users do not exist in new environment!
Also can you try restore using PowerShell with -Force switch parameter and see if that is successfull?
|
How can I output weekday and month in batch (log files)? |
I'm trying to setup 7zip for automated backups but I'm having trouble with output file names.
I tried using the %date% command but it just made 2 directories within my backup.
C:\Users\Desktop\Sun 11\07\2010.7z
How can I make it just log the day and month?
C:\Users\Desktop\Sun 11-07-2010.7z
|
Try
7z a %DATE:~-4%-%DATE:~4,2%-%DATE:~7,2%.7z *.* for (YYYY-MM-DD)
or
7z a %DATE:~7,2%-%DATE:~4,2%-%DATE:~-4%.7z *.* for (DD-MM-YYYY)
(*.* is the mask for the files to back up)
|
Subversion: dump backup, do I need incremental backups? |
I'm a subversion noob. I was plannig to take backups from the repo using this command:
svnadmin dump C:\Repositories\Dev > D:\backups\repo_dev.bak
My intention is to put this into Scheduled Task (Windows Server 2008) and run this on daily or weekly basis. Can I use this command only (old backup is replaced by the new... |
You can do either a full dump or an incremental. The chief problem with an incremental is that several backups are needed to reconstruct the data. A full dump is a stand alone all-inclusive data set.
Which one you choose depends on several factors:
how big the dumps are
how fast the repository changes
how reliable ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.