Script for daily Incremental Backup with Weekly full back?

Hi Can abybody plz give me the scrip for the daily incremental backup and weekly full backup.
Do we need 2 different scripts each for Incrmental and Full Backup or one will do.
Thanx in advance
Gagan

I will suggest you always
-backup archivelog daily when after yours backup database completion
-keep two days archivelog out of yours database storage to others device or
always take frequent archivelog to tape cartrideg after an hour depends yours
database activity pace.
You should also include archivelog backup within these backup scripts to others teriotry device i.e tape cartridge as well keep frequent archivelog backup if you think yours backup storage space is an issue or if you dont trust on yours backup storage media,keep an alternate tape cartridge for archivleog for frequent archivelog backup after every one hours depends the pace of yours database activity.Either backup archivelog frequently or multiplex the archvivelog to other devices.
Now you probably may confuse thats why i need archivelog backup command within this script when i am going to take incremental/full backup, its due to some thing happened with yours last backup got corrupted then you have alternate to restore before last backup.
Mon      Incremental + Archivelogs
Tue       Incremental + Archvielogs
Wed      Yours Database files got smokesWhat will you do
You will restore Tue backup and will apply alls redo from archivelogs which are generated to other devices yours data chances to be lost is minumum.You may lose only the current archivelog which is not yet to be log switched.If yours archivelog destination devices may corrupt then you have alternate to restore from tape cartridge.
If yours Tue backup cannot be restored even though you validate it after backup then you will have alternate to restore monday backup and you have backup of tue archivelog as well yours two days archivelog is also at another device then you may also recover the database till before crash.In this case you may lose only the current archivelog which is not yet to be log switched.
You cannot pile up archivelog to others device cause they begin to take a serious issue on disk thats why i mentioned two days archivelog to other device.
I hope now you clear why archivelog backup is essential with daily backup either its incremental or non incremental.
Khurram

Similar Messages

  • Restore incremental backup with rman

    Dear Friends
    can u tell me how to restore an incremental backup with rman? i backup my rman with statement below :
    1. backup full database format '/oracle/PRD/sapbackup/%U';
    the results was :
    -rw-r----- 1 oraprd dba 19006996480 Jun 10 12:08 0ojiit4n_1_1
    -rw-r----- 1 oraprd dba 12746752 Jun 10 12:08 0pjiiu6b_1_1
    2. after that i do incremental backup :
    backup incremental level 1 cumulative database format '/oracle/PRD/sapbackup/%U';
    the results was :
    -rw-r----- 1 oraprd dba 173400064 Jun 10 13:44 0ujij2k0_1_1
    -rw-r----- 1 oraprd dba 12746752 Jun 10 13:44 0vjij3qc_1_1
    what statement i need to run for restore the incremental backup?

    run{
    ALLOCATE CHANNEL c1 DEVICE TYPE DISK;
    RESTORE DATABASE;
    RECOVER DATABASE;
    The above command will restore your database from the last good RMAN backup. Your last backup is incremental level backup as you posted. The above command will fullfill your requirements

  • Scripting for Windows Server Backup for Exchange 2010

    Hi,
    I'm new to writing scripts and was wondering if anyone could assist with writing a script to backup an Exchange Server in a windows 2008 r2 environment.  I currently use Windows Server Backup with a full VSS backup to run exchange backups, however,
    each backup overwrites the previous one, and i would really like to have multiple backups.  I would also like  to specify backup log locations, and have emails sent upon successful backups or failed backups.  I am trying to write this powershell
    but cant seem to get things to work.
    Thanks
    Debbian

    You can use PowerShell in conjunction with the Windows Backup command line utility, wbadmin.exe. The code below should help get you started. I have included the date in order to help maintain multiple back ups, but if you do more than one back up per day,
    you will need to change the date format to include the time. You cannot control the built in logging of Windows Backup, but you could collect your own backup information and write that out to a text file. As far as sending emails, look into the Send-MailMessage
    cmdlet including the -Attachment parameter that could send your log file with your mail message. Cheers.
    $Date = Get-Date -Format 'MM-dd-yyyy'
    $Path = "\\server\share\$Date"
    New-Item -Path $Path -ItemType Directory | Out-Null
    Start-Process wbadmin.exe -ArgumentList "start backup -backupTarget:$Path -allCritical -vssFull -quiet"

  • RMAN weekly full backup and daily incremental backup script.

    Hallo! I would like to implement an Oracle 10g database backup policy where every Sunday night at 10 pm, a hot full compressed database backup is done, for every other day i.e. Monday to Saturday, a daily incremental compressed backup is done also at 10 pm.
    If anyone as an RMAN script that can perform such a backup, please provide me with it.
    Thanks.

    4joey1 wrote:
    Hallo! I would like to implement an Oracle 10g database backup policy where every Sunday night at 10 pm, a hot full compressed database backup is done, for every other day i.e. Monday to Saturday, a daily incremental compressed backup is done also at 10 pm.
    If anyone as an RMAN script that can perform such a backup, please provide me with it.
    Thanks.I would suggest you to try it by your own
    Use DBMS_SCHEDULER or cron job (I hope you're using Linux) to create a schedule which invokes rman script to take backup you want
    Try it and we'll help you
    "Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime"
    Kamran Agayev A.
    Oracle ACE
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • Restore using incremental backup with noarchivelog mode

    Hello experts,
    We are running SAP on Oracle databse(IN NOARCHIVELOG MODE) for which we are having full offline backup on every sunday and post which incremental backups on rest of the days. We have scenario to do restore db to the state till last friday's incremental backup.
    Please let us know the procedure for restoring till that point. If possible using brtools utility(which is SAP specific).
    Thank You
    Regards,
    Venkateshwar

    If you do not want to read the whole doc This is the snippet for you.
    Recovering a NOARCHIVELOG Database with Incremental Backups
    Restoring a database running in NOARCHIVELOG mode is similar to restoring a database in ARCHIVELOG mode. The main differences are:
    Only consistent backups can be used in restoring a database in NOARCHIVELOG mode.
    Media recovery is not possible because no archived redo logs exist.
    You can perform limited recovery of changes to a database running in NOARCHIVELOG mode by applying incremental backups. The incremental backups must be consistent, like all backups of a database run in NOARCHIVELOG mode, so you cannot make backups of the database when it is open.
    When you are recovering a NOARCHIVELOG database, specify the NOREDO option on the RECOVER command to indicate that RMAN should not attempt to apply archived redo logs. Otherwise, RMAN returns an error.
    To recover a NOARCHIVELOG database with incremental backups:
    After connecting to the target database and the recovery catalog, place the database in a mounted state:
    STARTUP FORCE MOUNT
    Restore and recover the database.
    For example, you can perform incomplete recovery with the following commands:
    RESTORE DATABASE
    FROM TAG "consistent_whole_backup";
    RECOVER DATABASE NOREDO;
    Open the database with the RESETLOGS option.
    For example, enter the following command:
    ALTER DATABASE OPEN RESETLOGS;

  • How long for Time Machine backup with USB v. 1

    My hard drive might be failing.  I'm going to backup with Time Machine for
    the first time ever.  I'll be using a 1 TB external hard drive.  My Mac only
    has a USB v. 1, so how long should this take?  I read where someone said
    that Time Machine said it would take DAYS to do it.  Say it ain't so!!  Any
    ideas our there?  Thanks!

    See this for an indication of transfer rates these are theoretical speeds - real world is slower!
    http://en.wikipedia.org/wiki/List_of_device_bit_rates
    USB 1.1 runs about 1.5MB/s at full rate.
    How much data is on your internal disk?
    Wolfram Alpha says 1TB would take 7 days & 17 hours.
    http://www.wolframalpha.com/input/?i=1TB+at+1.5+MB%2Fs
    I would add more days to that time to account for the fact that USB 1 is slower (more like 0.7MB/s in my tests from years ago).
    This is an appalling idea - your disk could easily stop working in the time it takes to copy.
    Fortunately you have got the spec wrong on this iMac…
    http://www.everymac.com/systems/apple/imac/specs/imac-core-2-duo-2.4-20-inch-alu minum-early-2008-penryn-specs.html
    It has USB2 ports & Firewire - connect directly to one of those & the time will be much less (more like 1/2 a day).

  • Time machine not doing incremental backups - instead doing full backups

    hi,
    Time machine does a complete full backup, and then instead of doing incremental backups, it wants to keep doing full backups.
    help.

    why do you think it's doing full backups?
    install TimeMachineBuddy widget and see exactly what it says. also install TimeTracker and see what exactly is being backed up every time
    http://www.charlessoft.com/
    but first, verify both the internal and TM drive with disk utility. verify disk, not permissions. if it reports any errors repair both drives. you'll need to boot from the snow leopard DVD to repair the main startup drive.
    also, see Pondini's troubleshooting tips at the top of the TM forum.
    http://discussions.apple.com/thread.jspa?threadID=2057525
    Message was edited by: V.K.

  • Insufficient space for importing TM backup with migration assistant

    First of all this is not for my main Mountain Lion installation on my Mac Pro, it is on a VM Ware Fusion virtual Mountain Lion installation that is running on my Mac Pro also running Mountain Lion. So this is really more a question dealing with VM Ware Fusion (or Parallels since I have the same issue with that as well) vs. a problem with Mountain Lion. Confused yet? I sure am....
    I am trying to import a time machine backup of my previous Snow Leopard drive into my virtual machine. I did not want to import this into my new drive because I am starting fresh and trying to clean up and Snow Leopard had 10 years worth of crus I am trying to get rid of, but I would still like to have my old SL drive running within VM Ware to help with the transition. I have a Mac Pro with a dual monitor set up so I want it to run in my second monitor and very slowly over the next few weeks get all the files I want and need instead of just importing a bunch of useless crap. 
    Anyway, here is the problem I am having and cannot seem to get past this hurdle. When I open migration assistant inside VM Ware ML  and choose my time machine backup of snow leopard everything works fine until it finishes calculating the size. I deselected all the files and folder I possibly can which leaves 209GB. Even with every single folder deselcted it still give an insufficient storage error I have already resized the VMware drive to 400GB which is more than enough. In my real machine under Finder>Get Info it shows it as 400GB, but within the virtual machine it is only showing the Mac HD to be 40GB which won't allow migration assistant to import the backup due to insuffient storage.
    I have a Mac Pro with tons of disk space so I have plenty of free space to allocate but I have tried everything I can think of but came up blank. Sorry if my explanation was overly verbose or confusing but I wanted to give as much detail as possible. Haven't really fiddled with the settings in VM Ware in a while so I must be missing something.
    So, how do you import files showing as larger than 40GB from a time machine backup with migration assistant without getting an error that there is not enough remaining space? And again, I have already resized the disk to 400GB that shows as 400GB on my real machine but only as 40GB inside the VM Ware Mac HD. I also have Parallels if that is easier to do what I am trying to accomplish.

    I just solved the problem! And this is actually a pretty big deal because experts at the VM Ware Fusion website and many other forums told me it was impossible.
    So here is the guide to running Mountain Lion in VM Ware Fusion or Parallels with a partition larger than 40GB and allows you to import an old user account from Tiger, Snow Leopard, Lion, etc..
    1) Make sure to shut down Mountain Lion in VM
    2) Under VM settings expand hard drive to whatever size you like
    3) You will need either a disk image or an actual DVD of mountain lion, mount that in your VM and choose it as start up. After rebooting open disk utility and partition Mac HD. Instead of only showing the 40GB limit it shold now show the size you created from step 2. Close disk utility and install Mountain Lion as normal. Reboot and unmount disk image.
    4) You now have a virtual Mountain Lion with whatever hard disk size you chose.
    5) Open migration assistant and do your time machine back up as normal from previous systems.
    The reason you might want to do this are many. In my case I wanted to have my old Snow Leopard user account open and running on my second monitor since I just did a fresh install on my Mac Pro. It is easy to import audio, photos, videos but there was a lot of other things I want to take my time bringinging over. There are also many cases where I needed to open up an app and view settings. Now I have my old machine essentially running at the same time as my new install side by side which is fantastic.

  • Can two macs use same disk for Time Machine backup with Airport Extreme?

    Hi
    I use a Western Digital disk as a wireless Time Machine backup connected to the USB port on my Airport Extreme and it works great. My question is: can my girlfriend use that same disk for Time Machine backup from HER computer too? (I don't mind formatting the disk if needed.)
    If she can't, is it then possible to connect a USB hub and have two disks hooked up to the Airport Extreme?
    Thanks for helping. I am constantly in awe of all the help people like you give people like me. Thanks!!!
    Jakob

    I've gone through the manual setup and the assisted setup and can't seem to get my MacBook to use the Time Machine. Any thoughts or help would be greatly appreciated.
    Well, as the Jolly Giant points out....+this type of configuration is not supported by Apple+, so it's difficult, if not impossible, to provide a fix for something that Apple says that you cannot do. Reference these Apple Support documents regarding this topic:
    http://support.apple.com/kb/HT2038
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/15139.html
    Your situation is not unlike other users who try this and find that one computer may backup...(usually for a limited time before corruption issues start to creep in)...but another computer cannot backup. Count me as one of those users who thought that because things seemed to work that I had somehow "beat the system".
    I started getting the corruption error messages after 4-5 weeks of successful backups, so I figured that it did not make sense to continue to try to get a second computer to backup (yes, I too could not setup a second Mac to backup).
    Sorry, I could not get a second machine to backup, so can't tell you how to accomplish that goal. If you want to continue to try backing up this way, you might want to also think about a second backup strategy...just in case backups become corrupted on the WD drive.
    Maybe if Apple says you cannot do this, they just may be right?
    Message was edited by: Bob Timmons

  • A script for oracle10g cold backup on linux

    Hi,
    I have a urgent need to do a cold backup using o/s command. Can anyone please send me a script for this.
    Thanks in advance
    PK

    I ended up writing the script
    define 3 = &backup_directory
    define 4 = &instance_name
    define 5 = &user_dump_directory
    Set Heading Off
    Set Verify Off
    Set FeedBack Off
    Set LineSize 132
    Set PageSize 1000
    set termout off
    Spool cold_back.sql
    select 'connect /as sysdba' from dual;
    Select 'Startup Force' || CHR(10) ||
    'Shutdown Normal' From Dual;
    select '! mkdir '||'&&3'||'/'||to_char(sysdate,'yyyyddmm') from dual
    /* Data Files */
    Select '!cp ' || File_Name || ' &&3'||'/'||to_char(sysdate,'yyyyddmm') || CHR(10) ||'!gzip ' || '&&3' ||'/'||to_char(sysdate,'yyyyddmm')|| '/' || SubStr(File_Name, InStr(File_Name, '/', -1)+1) From Sys.DBA_Data_Files
    /* Redo Log Files */
    Select '!cp ' || Member || ' &&3'||'/'||to_char(sysdate,'yyyyddmm') || CHR(10) || '!gzip ' || '&&3'||'/'||to_char(sysdate,'yyyyddmm') || '/' || SubStr(Member, InStr(Member, '/', -1)+1) From V$LogFile
    /* Control Files */
    Select '!cp ' || name || ' &&3'||'/'||to_char(sysdate,'yyyyddmm') From V$controlfile
    /* Init and Config Files */
    Select '!cp $ORACLE_HOME/dbs/init&&4' || '.ora &&3'||'/'||to_char(sysdate,'yyyyddmm') From Dual
    alter session set tracefile_identifier=coldbackup
    alter database backup controlfile to trace
    select '!mv '||'&&5/*COLDBACKUP*' ||' &&3'||'/'||to_char(sysdate,'yyyyddmm') FROM dual
    Select 'Startup' From Dual;
    Select 'Exit' from dual;
    set termout on
    PROMPT " Run the output cold_back.sql script [sqlplus -s '/as sysdba' @cold_back.sql ]"
    Spool Off
    -----------------------

  • Report for Daily Incremental

    Hi,
    I just want to know the volume size of daily backup , How i can make this report or get through a query for last 4 weeks.
    Regards
    Usman Ghani
    Usman Ghani - MCITP Exchange 2010

    you can use very greate report from MVP Steve Buchanan .
    DPM Backup Summary Report
    Have a nice day !!!

  • Pleaseprovide the script for the tape backup

    Hi All,
    I am a new to Oracle Apps DBA.Here, the client needs to take the full Tape backup of a Oracle Apps GL Server.
    Please help me in this regard.
    Thanks

    You should use CONFIGURE CHANNEL DEVICE TYPE sbt.
    Check Configuring SBT Channels for Use with a Media Manager for the full details.

  • Need to find a scripts for changing default "Open with" iTunes app to Quick

    Hello all...
    I'm new to scripting but need a script really quickly...
    I was wondering if anyone knew where I could find a script that will change the default "Open with" of audio files placed within a certain folder on my desktop...
    I'm making sound clips with WireTap and dumping them in a folder called WireTapExports as .mp3. I then need to play them without using iTunes (and importing them by default) but going into the "Get Info" and manualy changing the "Open With" settings for each file is taking ages...and it's very irratating...
    Is there a way I can make all audio file put in that folder automaticaly open with Quicktime instead.
    I know this is quite easy to most but I've only just started looking at Applescript (i.e. a few days ago) and but I need this to work now...
    Many thanks in advance...
    PigeonCake...

    Not what you want, but if you hold the control key while getting info it changes to summary info which then lets you change the preferred application on a batch of files in one go.

  • Script for synchronizing the clock with Domain Controller

    Hi Everyone,
    In our environment, we have Mac machines which are joined to window's domain. Once in while machine will not log on to domain because the OS clock had a different time than the domain controller and sooner you fix the clock, machine will start communicating with domain controller.
    I was wondering if there is an easier way to do this using script which can run every few hours to force the OS clock to synchronize with the domain controller.
    Thanks,

    You don't need an Applescript to do that.
    Enable the NTP server on the Windows Domain Controller (perhaps start here: http://technet.microsoft.com/en-us/library/cc773013.aspx).
    Then setup the Macs to use NTP (Network Time) to sync to the domain controller.

  • Is it possible to use same sap script for different comp code with difflogo

    I have 3 company codes. I need to use same sap script to all  but each company code has different logo. I dnt want to go for 3 different sap script. Is it possible to change in coding
    like this
    If comp code = '100'
    print ' logo1'
    If comp code = '200'
    print ' logo2'
    If comp code = '300'
    print ' logo3'
    in same sapscript.If yes how ?

    Hi,
    Yes you can do it.
    In Sap Script use:-
    /: If Comp code='100'
       INCLUDE ZHEX-LOGO100 OBJECT TEXT ID ST LANGUAGE EN
    /:Elseif comp code = '200'
    INCLUDE ZHEX-LOGO200 OBJECT TEXT ID ST LANGUAGE EN
    /:Else
    INCLUDE ZHEX-LOGO300 OBJECT TEXT ID ST
    LANGUAGE EN
    /:Endif
    I hope this helps,
    Regards
    Raju Chitale

Maybe you are looking for