backup

Reverse changes from transaction log in SQL Server 2008 R2?

一曲冷凌霜 提交于 2019-12-06 16:00:03
We have a SQL Server 2008 R2 database that backs up transaction logs every now and then. Today there was a big error in the database caused at around 12am... I have transaction logs up to 8am and then 12am - 16pm - etc. My question is: can I sort of reverse-merge those transaction logs into database, so that I return to the database state at 8am? Or is my best chance to recover an older full backup and restore all transaction logs up to 8am? The first option is preferable since full backup has been performed a bit of a while ago and I am afraid to f*ck things up restoring from there and

Export oracle database to sql file?

我们两清 提交于 2019-12-06 13:27:38
问题 I have a database that is in oracle 8i and i want to export the entire database of a user to a .sql file and the import it to another system that has oracle 10g installed on it. 回答1: To export your database, you must use the 8i exp utility: exp full=y compress=N userid=system/system_pw file=dumpfilename.dmp log=explog.txt To import your database, you must use the 10g imp utility: imp full=y file=dumpfilename.dmp userid=system/system_pw log=implog.txt The 10g imp utility is backward compatible

Daily and weekly backup strategies

孤街醉人 提交于 2019-12-06 13:09:16
问题 I would like to understand more about Complete GIT backup in Server on everyday or weekly basis. I have tried the @VonC fully and incremental backup script 'sbin/save_bundles', mentioned in this answer, which gives the following error. Error message: ./test.sh : line 7 : /home/.bashr : No such file or directory ./test.sh : line 69 : /home/sbin/usrcmd/get_hostname : No such file or directory ./test.sh : line 70 : get_hostname : command not found ./test.sh : line 71 : /home/sbin/usrcmd/get_fqn

Reading appengine backup_info file gives EOFError

不想你离开。 提交于 2019-12-06 12:26:19
I'm trying to inspect my appengine backup files to work out when a data corruption occured. I used gsutil to locate and download the file: gsutil ls -l gs://my_backup/ > my_backup.txt gsutil cp gs://my_backup/LongAlphaString.Mymodel.backup_info file://1.backup_info I then created a small python program, attempting to read the file and parse it using the appengine libraries. #!/usr/bin/python APPENGINE_PATH='/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/' ADDITIONAL_LIBS = [ 'lib/yaml/lib' ] import sys sys.path

How to import a Oracle 11g RMAN backupset on a new database server?

萝らか妹 提交于 2019-12-06 11:47:27
I have got a backupset of an Oracle 11g database which was created with RMAN. Now I want to import/restore the backupset onto a new and empty database server. I know that the command to create the backupset was run { backup as compressed backupset database tag "FULLBACKUP" format "/orabackup/rman/backup/FULL_%d_%T_%U"; backup as compressed backupset archivelog all tag "ARCHIVELOGS" format "/orabackup/rman/backup/ARCH_%d_%T_%U" delete all input; } but I cannot find out how to make the files produced by this command known to RMAN on my new database server and import the backupset using RESTORE

change database name controlfiles after restore?

白昼怎懂夜的黑 提交于 2019-12-06 11:39:16
问题 I have restored database with the name DB to another database called DB01 it is in STARTED status (not mounted) and it seems I can not change the name if it is not mounts, and I can not mount it because of the name, how to solve this issue if possible? I have RMAN full backup from DB on my current server which hosting the database DB01 the initdb01.ora is ready and configured with DB01 what can I do next nid did not help! it asks for the database to be mounted! which i can not mount it ORA

How to zip specified folders with Command Line

泄露秘密 提交于 2019-12-06 09:58:03
Could you people tell me how to zip specified files into same Zip file. Let me tell how my folders are filled : A task scheduler have backups of my databases and save them into a file daily. It creates 4 database backup daily which means there will be 4 more files daily. So I need to zip newly created backups into same zip file (of course it differs from previous day zip file, the zip file will be created for that day for newly created backup files) and I need to do it automatically. Well I know how to make it automatic. I can use Windows task scheduler to automate things. Thanks. Cheeso You

detect if something is modified in directory, and if so, backup - otherwise do nothing

橙三吉。 提交于 2019-12-06 09:31:03
I have a "Data" directory, that I rsync to a remote NAS periodically via a shell script. However, I'd like to make this more efficient. I'd like to detect if something has changed in "Data" before running rsync. This is so that I don't wake up the drives on the NAS unnecessarily. I was thinking of modifying the shell script to get the latest modified time of the files in Data (by using a recursive find), and write that to a file every time Data is rsynced. Before every sync, the shell script can compare the current timestamp of "Data" with the previous timestamp when "Data" was sync'd. If the

backup mysql tables with php

给你一囗甜甜゛ 提交于 2019-12-06 09:06:32
问题 I would like to backup tables (with PHP) from a db if the table prefix is matching with a sub string. What I was trying and is not working error_reporting(1); $dbname = 'wp_dev'; if (!mysql_connect('127.0.0.1', 'root', '')) { echo 'Connection Error'; exit; } $sql = "SHOW TABLES FROM $dbname LIKE 'wp_%'"; $result = mysql_query($sql); if (!$result) { echo "DB tables could not be listed\n"; echo 'MySQL Fehler: ' . mysql_error(); exit; } while ($row = mysql_fetch_row($result)) { echo "<pre>Table:

How to backup filesystem with tar using a bash script?

早过忘川 提交于 2019-12-06 08:06:50
问题 I want to backup my ubuntu filesystem, and I wrote this little script. It is very basic, but being my first try I am afraid to do mistakes. And since it will take few hours to complete to see results, I think it is better to ask you as experienced programmers if I did something wrong. I'm particularly interested in > will that record output of mv or will it output also results of tar ? Also variables inside tar command is it correct way? #!/bin/bash mybackupname="backup-fullsys-$(date +%Y-%m-