backup and recovery of sap systems on aws v2-0 final (3)

41
8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3) http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 1/41  Backup and Recovery of SAP Systems on Amazon Web Services Created by: Amazon Web Services [email protected] Version: 2.0

Upload: anonymous-7glpuhc9

Post on 07-Jul-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 1/41

 

Backup and Recovery of SAP

Systems on Amazon Web

Services

Created by: Amazon Web [email protected]

Version: 2.0

Page 2: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 2/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

$ocment %istory

Be"ore proceedin&' make sre yo (ave t(e )atest version o" t(is docment. *o can+nd t(e )atest version on t(e AWS website:

(ttp:,,aws.amazon.com,sap

 (e )atest errata to t(is docment can be "ond in SA# note /1.

Version

Date Description

.0 ,3,202

$ocment created

2.0 4,,202

Sybase AS5 $atabase additions

2

Page 3: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 3/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

ContentsAbout this Guide!

W(at is not inc)ded in t(is &ide........................................................................3

Prere"uisite Documentation!

SA# on Amazon Web Services.............................................................................. 3

SA# on S67 Server.............................................................................................../

SA# on $B2 78W.................................................................................................. /

SA# on 9a$B...................................................................................................... /

SA# on Sybase AS5............................................................................................../

#vervie$ of AWS Services for Backup and Recovery%

Backup Destination on AWS&

Backup and Recovery of non'Production Systems&

Create ;ma&e Backp 9et(od................................................................................. 4

%ow to eecte an ad-(oc backp sin& Create ;ma&e........................................4

%ow to sc(ed)e a backp sin& Create ;ma&e..................................................0

%ow to restore a system t(at was backed p sin& Create ;ma&e.....................

Snaps(ot backps o" individa) primary 5BS Vo)mes..........................................

Backup and Recovery of Production Systems()

$atabase Backp to secondary 5BS Vo)mes........................................................2

SA# <i)e System Backp on Windows.................................................................1

SA# <i)e System Backp on 7in.......................................................................=

9icroso"t S67 Server 200 !2 on Windows........................................................=

;B9 $B2 78W on 7in or Windows....................................................................3

SA# 9a$B on 7in or Windows......................................................................./

SA# Sybase AS5 on 7in or Windows................................................................/

Backp and !ecovery wit(ot 1rd party backp so"tware......................................

Copyin& backp data to' and retrievin& t(em a&ain "rom Amazon S1...............Creatin& a Snaps(ot o" a backp 5BS Vo)me....................................................4

Backp and !ecovery sin& 1rd party backp so"tware.........................................4

8sin& 1rd party backp so"tware on AWS............................................................4

1rd party backp so"tware t(at spports direct backp to Amazon S1...............20

Appendi* (+ ,inu* System Backup usin- .AR)(

1

Page 4: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 4/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

Appendi* )+ /B0 DB) Database Backup to a 1oca1 2i1e System)3

$B2 ro))"orward recovery.......................................................................................21

Steps to enab)e ro))"orward recovery and set p $B2 )o&+)e mana&ement........21

5amp)e: $B2 78W ")) on)ine data and )o& backp..............................................2=

Appendi* 3+ DB) ,4W Database Restore and Recovery)5

5amp)e: $B2 !estore and !ecovery "rom >backp? 5BS Vo)me Snaps(ots..... ..2/

Appendi* 6+ SAP 0a*DB Database Backup to a ,oca1 2i1e System)&

5amp)e: ")) on)ine data and )o& backp "or 9a$B............................................2

Create 9a$B backp temp)ates.......................................................................2

ption : Back p t(e database sin& $atabase Stdio....................................24

ption : Back p t(e database transaction )o&s sin& $atabase Stdio..........24

ption 2: Back p t(e database sin& $B9C7;..................................................24

ption 2: Back p t(e database )o& sin& $B9C7;............................................24

Sc(ed)e (or)y atomatic )o& backp sin& $atabase Stdio..........................10

Create a snaps(ot to send t(e backp to S1......................................................10

Appendi* !+ SAP 0a*DB Database Restore and Recovery3(

5amp)e: 9a$B !estore and !ecovery "rom >backp? 5BS Vo)me Snaps(ots...1

ption : $atabase !estore and !ecovery sin& 9a$B $atabase Stdio........12

ption 2: $atabase !estore and !ecovery sin& 9a$B $B9C7;......................12

Appendi* 5+ Sybase AS7 Database Backup to a 1oca1 2i1e System35

5nsrin& !ecoverabi)ity o" t(e Sybase AS5 database server.................................1/

#reparation............................................................................................................1/

Atomatin& $atabase and ransaction 7o& $mps...............................................1

Appendi* %+ Sybase AS7 Server Recovery3&

=

Page 5: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 5/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

About this Guide

 (is &ide provides an overview o" (ow to backp SA# systems on Amazon WebServices AWS. (is &ide is not intended to rep)ace any o" t(e standard SA# or!$B9S docmentation. (is &ide "ocses on t(e essentia) dierences in backin&p SA# systems on AWS as compared to traditiona) in"rastrctre.

$ierent backp options and met(ods are provided "or non-prodction sandbo'trainin&' demo' #C' etc. and prodction systems.

What is not inc1uded in this -uide

Apart "rom some eamp)es' t(is &ide does not inc)de detai)ed instrctions (ow toeecte database backps sin& eit(er native !$B9S backp,recovery "eatres or1rd party backp too)s. #)ease re"er t(e standard S' SA# and !$B9S

docmentation or t(e docmentation provided by t(e backp so"tware vendor.

Backp sc(ed)es' "reDency' and retention periods' are primari)y based on yorsystem type and bsiness reDirements. #)ease re"er to t(e standard SA#docmentation "or &idance on t(ese topics.

Prere"uisite Documentation (is &ide does not provide detai)ed instrctions on (ow to eecte SA# system anddatabase backps or provide recommendations "or backp "reDencies or retention.<or t(is in"ormation p)ease re"er to t(e standard SA# and database vendor

docmentation mentioned in t(e "o))owin& sections.

SAP on Amazon Web Services

 (is docment assmes t(at yo are a)ready "ami)iar wit( imp)ementin& andoperatin& SA# so)tions on Amazon Web Services in"rastrctre. ;" yo (ave nota)ready read t(e SA# on AWS ;mp)ementation Eide and t(e SA# on AWS perationsEide' p)ease read t(ese &ides be"ore continin&. A)) AWS &ides "or SA# can be"ond at (ttp:,,aws.amazon.com,sap.

 be)ow )ist t(e avai)ab)e SA# notes "or dep)oyin& SA# on AWS in"rastrctreF t(e)atest errata to t(is &ide can be "ond in SA# note /1.

.ab1e (+ SAP notes for dep1oyin- SAP on AWS

SAP8ote 9

Description

3// SA# on AWS: verview o" re)ated SA# Gotes and Web-7inks/3/044 SA# on AWS: Spported prodcts' p)at"orms and )andscapes/3/230 SA# on AWS: Spported instance types/3/2=4 SA# on AWS: ;nitia) imp)ementation &ide)ines/3/232 SA# on AWS: perations and 7i"ecyc)e 9ana&ement

3

Page 6: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 6/41

Page 7: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 7/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

/3 S*B: %ow to restore a Sybase AS5 database serverWindows

/ S*B: %ow to restore a Sybase AS5 database server 8G;J31/ S*B: Con+&re atomatic database and )o& backps

Page 8: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 8/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

#vervie$ of AWS Services for Backup and Recovery (is section provides an overview o" t(e dierent AWS services t(at are reDired "or

t(e backp and recovery or SA# systems rnnin& on AWS. <or a more detai)eddescription o" eac( service p)ease re"er to t(e )inks provided.

Simp1e Stora-e Service ;S3< H (ttp:,,aws.amazon.com,s1Amazon S1 provides a (i&()y drab)e stora&e in"rastrctre desi&ned "or mission-critica) and primary data stora&e. Amazon S1 is desi&ned to provide44.444444444K drabi)ity and 44.44K avai)abi)ity over a &iven year.

  Amazon S1 in t(e center o" any SA# backp and recovery so)tion on AWS. A))backps met(ods described in t(is docment re)y on backp data bein& storeddirect)y or indirect)y in Amazon S1.

71astic Compute C1oud ;7C)< H (ttp:,,aws.amazon.com,ec2 (e Amazon 5)astic Compte C)od 5C2 is an ; in"rastrctre p)at"orm t(atprovides on-demand access to virta) 7in and Windows servers' stora&e'networkin&' and ot(er in"rastrctre services.

  Components of AWS 7C)

Amazon 0achine /ma-e ;A0/<An A9; is t(e server temp)ate t(at is sed to )anc( a new instance virta)server. (e A9; contains t(e base operatin& system e.&.' 7in or 9icroso"tWindows t(at yo can t(en insta)) SA# so"tware on top o". A )ar&e se)ection

o" pb)ic A9;s is avai)ab)e "rom Amazon and t(e Amazon 5C2 commnity andit is possib)e to create yor own A9;s.

/nstanceA"ter an A9; is )anc(ed' t(e res)tin& rnnin& system is ca))ed an instance.

Re-ions and Avai1abi1ity =onesAmazon 5C2 )ocations are composed o" !e&ions and Avai)abi)ity Lones.

 Availability Zones are distinct )ocations t(at are en&ineered to be ins)ated"rom "ai)res in ot(er Avai)abi)ity Lones and provide inepensive' )ow )atencynetwork connectivity to ot(er Avai)abi)ity Lones in t(e same !e&ion.Regions consist o" one or more Avai)abi)ity Lones' are &eo&rap(ica))y

dispersed' and wi)) be in separate &eo&rap(ic areas or contries. Amazon 5C2is crrent)y avai)ab)e in seven re&ions: 8S 5ast Gort(ern Vir&inia' 8S West Gort(ern Ca)i"ornia' 8S West 2 re&on' 58 ;re)and' Asia #aci+cSin&apore' and Asia #aci+c okyo and AWS EovC)od

71astic B1ock Store ;7BS< > (ttp:,,aws.amazon.com,ebsAWS 5)astic B)ock Store 5BS provides persistent b)ock )eve) stora&e vo)mes"or se wit( 5C2 instances. 5BS vo)mes are o-instance stora&e t(at persistsindependent)y "rom t(e )i"e o" an instance. 5)astic B)ock Store provides (i&()y

Page 9: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 9/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

avai)ab)e' (i&()y re)iab)e stora&e vo)mes t(at can be attac(ed to an Amazon5C2 instance and eposed as a device wit(in t(e instanceMs &est operatin&system.

7BS Snapshot5BS provides t(e abi)ity to create point-in-time snaps(ots o" vo)mes' w(ic(are persisted to Amazon S1. Snaps(ots can be sed as t(e startin& point "ornew Amazon 5BS vo)mes as we)) as to protect data "or )on&-term drabi)ity.;" yo make periodic snaps(ots o" a vo)me' t(e snaps(ots are incrementa) sot(at on)y t(e b)ocks on t(e device t(at (ave c(an&ed since yor )astsnaps(ot are incrementa))y saved in t(e new snaps(ot. 5ven t(o&(snaps(ots are saved incrementa))y' t(e snaps(ot de)etion process is desi&nedso t(at yo need to retain on)y t(e most recent snaps(ot in order to restoret(e vo)me.

AWS /mport?7*port Service > (ttp:,,aws.amazon.com,importeportAWS ;mport,5port acce)erates movin& )ar&e amonts o" data into and ot o" AWSsin& portab)e stora&e devices "or transport. AWS trans"ers yor data direct)y ontoand o o" stora&e devices sin& AmazonMs (i&(-speed interna) network andbypassin& t(e ;nternet. <or si&ni+cant data sets' AWS ;mport,5port is o"ten "astert(an ;nternet trans"er and more cost eective t(an p&radin& yor connectivity.

Amazon G1acier H (ttp:,,aws.amazon.com,&)acierAmazon E)acier is an etreme)y )ow-cost stora&e service t(at provides secre anddrab)e stora&e "or data arc(ivin& and backp. ;n order to keep costs )ow' AmazonE)acier is optimized "or data t(at is in"reDent)y accessed and "or w(ic( retrieva)times o" severa) (ors are sitab)e. Wit( Amazon E)acier' cstomers can re)iab)y

store )ar&e or sma)) amonts o" data "or as )itt)e as N0.0 per &i&abyte per mont(' asi&ni+cant savin&s compared to on-premises so)tions.

Backup Destination on AWS (e primary dierence between backin& p SA# systems on Amazon Web Servicescompared to traditiona) on-premises in"rastrctre is t(e backp destination. (etypica) backp destination sed wit( on-premises in"rastrctre is tape. n AWS'instead o" storin& backps on tape' backps are stored in Amazon S1. (ere aremany bene+ts to storin& backps in Amazon S1 vs. tape. Backps stored in AmazonS1 are atomatica))y stored >osite? "rom t(e sorce system since data in AmazonS1 is rep)icated across m)tip)e "aci)ities wit(in t(e AWS re&ion.

 (ere are primari)y two dierent met(ods to store backps in Amazon S1. (e +rstmet(od is to backp data direct)y into Amazon S1' t(e second met(od invo)vesbackin& p yor data to a )oca))y attac(ed 5BS vo)me and t(en sbseDent)ycopyin& t(is data into Amazon S1. $etai)s (ow to copy backp data "rom an 5BSvo)me into Amazon S1 are provided )ater in t(is docment.

4

Page 10: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 10/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

Backup and Recovery of non'Production Systems

 (is section provides backp options "or non-prodction systems. 5amp)es o" non-prodction systems are:

• $emo systems

•  rainin& systems

• Sandbo systems

• #roo"-o"-Concept systems

•  ria) systems

Systems o" t(is type s(are t(e "o))owin& backp reDirements:• ;n"reDent backps -2 times per week

• $o not reDire point-in-time recovery

• Can to)erate downtime to comp)ete a backp

• Simp)e )ow cost backp so)tions

Create /ma-e Backup 0ethod (e 5C2 Create ;ma&e "nction can be sed to create ")) S' app)ication' anddatabase +)e systems oOine backps o" a comp)ete SA# system. 5ectin& aCreate ;ma&e creates and re&isters a new Amazon 9ac(ine ;ma&e A9; o" t(ernnin& instance and creates snapshots of all EBS volumes attached to the instance. Create

Image can also be used to copy complete SAP systems with very little effort. The AI created duringthe Create Image process can then be used to launch additional EC! instances that are identical to the

source SAP system.

Please note that in order to provide a consistent bac"up# the EC! Instance is stopped at the beginningof the create image process to confirm all I$% to the EBS volumes is &uiesced. The EC! Instance is

only stopped for a short period of time and is restarted while EBS snapshot synchroni'ation iscontinued in the bac"ground.The following graphic illustrates the Create Image process ()igure *+.

0

Page 11: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 11/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

2i-ure (+ .he Create /ma-e ;A0/< process

@o$ to e*ecute an ad'hoc backup usin- Create /ma-e

 *o can eecte a create ima&e "rom wit(in t(e AWS 9ana&ement Conso)e bysimp)y ri&(t c)ickin& on t(e instance yo wo)d )ike to backp and se)ectin& Create;ma&e 5BS A9;.

<or detai)ed docmentation o" t(e Create ;ma&e process p)ease read t(e Creating Amazon EBS-Backed AMIs section o" t(e AWS 5C2 8ser Eide:(ttp:,,docs.amazonwebservices.com,AWS5C2,)atest,8serEide,creatin&-an-ami-ebs.(tm)

  Creatin& an 5C2 ;ma&e wi)) s(t down and restart t(e 5C2 ;nstance V9 andperatin& System to create consistent snaps(ots. *o need to make sre t(at SA#app)ications and databases are c)ean)y s(t down be"ore sin& t(is command.A"ter 5C2 ;nstance restart' databases and SA# app)ications need to be restarteda&ain to resme SA# operation.

@o$ to schedu1e a backup usin- Create /ma-e

 *o can sc(ed)e backps sin& t(e Create ;ma&e met(od sin& t(e 5C2 A#;

command )ine too)s. (e 5C2 A#; command )ine too)s a))ow yo to mana&e AWS5C2 resorces "rom Windows or 7in command s(e)). ;nc)ded in t(e 5C2 A#; too)sis t(e ec2-create-image command t(at it sed to create an A9; "rom and eistin&5C2 instance.

Be)ow is t(e synta and an eamp)e (ow to create a new A9; sin& t(e ec2-create-image command:

Synta*+ ec2-create-ima&e

Page 12: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 12/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

ec2-create-image –n <your_image_name> <instance_id>

7*amp1e+ ec2-create-ima&e<stopsap on EC2 instance i-eo9483uj> 

ec2-create-image –n ECC_Demo_20120401 i-eo9483uj

<startsap on EC2 instance i-eo9483uj> 

@o$ to schedu1e the Create /ma-e process+ ;nsta)) and con+&re t(e 5C2 A#; command )ine too)s on a server on yor

corporate network or on anot(er 5C2 Windows instance t(is can be a dedicatedadministration system sed "or tasks )ike t(is.

2 Create a s(e)) or batc( script t(at contains t(e ec2-create-ima&e command wit(t(e necessary parameters to create an ima&e o" t(e instance yo wis( tobackp.

1 Sc(ed)e t(e batc( script to rn w(en yo wo)d )ike t(e Create ;ma&e processto take p)ace sin& cron on 7in or t(e ask Sc(ed)er bi)t into Windows.

$etai)ed in"ormation on t(e ec2-create-ima&e and ot(er 5C2 A#; command )inetoo)s' inc)din& down)oad in"ormation' are provided be)ow.

Amazon 7C) Command ,ine Reference > ec)'create'ima-e(ttp:,,docs.amazonwebservices.com,AWS5C2,)atest,Command7ine!e"erence,Api!e"erence-cmd-Create;ma&e.(tm)

Do$n1oad ' Amazon 7C) AP/ command 1ine too1s(ttp:,,aws.amazon.com,deve)opertoo)s,13

Gettin- Started $ith the Command ,ine .oo1s(ttp:,,docs.amazonwebservices.com,AWS5C2,)atest,8serEide,inde.(tm)PSettin&8pQCommand7ine.(tm)

@o$ to restore a system that $as backed up usin- Create /ma-e

!estorin& a system t(at was backed p sin& t(e Create ;ma&e met(od is very

simp)e. Since t(e Create ;ma&e process creates a comp)ete ima&e A9; o" t(e

instance bein& backed by creatin& snaps(ots o" a)) attac(ed 5BS vo)mes' a)) t(at is

needed to restore a system is to )anc( a new instance "rom t(e )atest A9; version.

<or detai)ed instrction (ow to )anc( and instance "rom an A9; p)ease re"er to t(eAWS 5C2 8sers Eide:(ttp:,,docs.amazonwebservices.com,AWS5C2,)atest,8serEide,7anc(in&And8sin&;nstances.(tm)

A"ter t(e comp)ete system (as been restored "rom an A9;' t(e SA# databases canbe ro))ed "orward as described in t(e net c(apter.

2

Page 13: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 13/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

Snapshot backups of individua1 primary 7BS Vo1umes;nstead o" creatin& a comp)ete A9; system backp as described in t(e previos

section' snaps(ots o" individa) 5BS Vo)mes can a)so be )evera&ed to create more

+ne-&rained snaps(ot backps. (e Create Snaps(ot process o" individa) 5BS

Vo)mes is i))strated in <i&re 2 be)ow.

2i-ure )+ Snapshots of individua1 primary 7BS Vo1umes

 *o can create a consistent snaps(ot o" individa) 5BS Vo)mes on a rnnin& systemas )on& as yo can make sre t(at no ;, is takin& p)ace on t(e 5BS Vo)mes' and a))+)e system cac(e is Rs(ed proper)y to t(e nder)yin& 5BS Vo)mes. (e easiestand sa"est way to assre 5BS Vo)me consistency is to stop processes t(at access

t(e 5BS Vo)mes' )ike stoppin& t(e SA# app)ication and its database' and dismontt(eir +)e systems proper)y be"ore creatin& snaps(ots o" nder)yin& 5BS Vo)mes.A)ternative)y' combinations o" $B9S and +)e system tec(niDes can be sed totemporari)y "reeze +)e system ;, "or a s(ort period o" time to create snaps(ots o"t(e nder)yin& 5BS Vo)mes' and to resme ;, a"ter consistent snaps(ot creation(as +na)ized.

 As direct primary 5BS Vo)me snaps(ot tec(niDes o" SA# systems and t(eir

databases are comp)e to set p correct)y' t(ey are not wit(in t(e scope o" t(ese&enera) backp and restore &ide)ines.

Backup and Recovery of Production Systems

 (e backp options covered in t(is section address t(e "o))owin& backpreDirements t(at are common "or prodction systems:

• <reDent backps via a sc(ed)ed backp

• n)ine database data backp

1

Page 14: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 14/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

• $atabase transaction )o& backp

• #oint-in-time database recovery

• C)ose)y sync(ronized +)e system and database backps

<or prodction systems' a re&)ar restore o" t(eir backps to a separate system isstron&)y recommended' so t(at:

• !estore and recovery procedres' and Service 7eve) A&reement S7Aobectives can be va)idated

• !estored data can be c(ecked "or consistency sin& t(e $B9S too)s )isted in ab)e 2 be)ow

.ab1e )+ #vervie$ of DB0S too1s for checkin- data consistency and inte-rity

DB0S .oo1S67 Server $BCC C%5CT$B$B2 $B2$A!

9a$B C%5CT $AASybase AS5 $BCC C%5CT$B

Database Backup to secondary 7BS Vo1umes (e backp options covered in t(is section invo)ve +rst writin& t(e backp data to a)oca) >backp? 5BS vo)me and t(en copyin& t(e backp data to Amazon S1 so t(att(e data is protected in case o" "ai)re o" t(e backp 5BS vo)me.

 (e "o))owin& &rap(ic s(ows (ow backps are +rst created on a )oca) 5BS vo)meand t(en t(e backp data is copied to S1:

=

Page 15: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 15/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

2i-ure 3+ Backup to 7BS then Snapshot?Copy to S3

SAP 2i1e System Backup on Windo$s

Backp and recovery o" t(e operatin& system and critica) SA# +)e systems is

accomp)is(ed sin& t(e Windows Server Backp "eatre bi)t into Windows Server

200 !2. (e Windows Server Backp "eatre is not insta))ed by de"a)t on t(e

standard Windows Server 200 !2 A9; bt can be easi)y added by "o))owin& t(e

steps provided be)ow:

C)ick on t(e Start  btton and t(en ri&(t c)ick on Computer 2 Se)ect Manage1 n t(e )e"t se)ect Server Manager = n t(e ri&(t scro)) down to Features Summary  and c)ick on Add Features3 Se)ect Windows Server Bacup Features and t(en c)ick on /nsta11

nce t(e Windows Server Backp <eatre insta))ed' yo can t(en sc(ed)e backpso" t(e drives and,or directories t(at need to be backed p sin& t(e Windows ServerBackp wizard.

W(i)e sc(ed)in& a backp in t(e Windows Server Backp wizard yo wi)) be asked

to c(oose a !estination "ype' c(oose #ocal !rives and t(en se)ect t(e drive t(atis t(e backp 5BS vo)me Windows $rive and "o)der yo wis( to back p to.

<or detai)ed instrctions (ow to sc(ed)e a backp sin& t(e Windows ServerBackp "eatre' p)ease re"er to:Backup and Recovery #vervie$ for Windo$s Server )& R)(ttp:,,tec(net.microso"t.com,en-s,)ibrary,dd443/2vUws.0.asp

3

Page 16: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 16/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

SAP 2i1e System Backup on ,inu*

pen sorce too)s "or backin& p data on 7in inc)de tar' cio' and rsyncF a

detai)ed eamp)e is &iven in ?Appendi : 7in System Backp sin& A!?.

<or SA# instrction (ow to create a ")) SA# system backp on 7in wit( A!'p)ease re"er to:

• SA# 7ibrary (e)p.sap.com H Backin& 8p and !estorin& yor SA# System on8G;Jse t(e +)e system eamp)e (erein' wit( a +)e )ocation on a backp 5BSvo)me

0icrosoft S:, Server )& R) on Windo$s

 ab)e 1 be)ow s(ows a samp)e database )ayot "or S67 Server' w(ere eac( Windows

$rive is backed by a sin&)e 5BS Vo)me. <or additiona) in"ormation on recommended

drive,5BS con+&ration "or SA# systems on AWS' p)ease re"er to t(e SAP on AWS

Implementation Guide re"erenced at t(e be&innin& o" t(is &ide.

$rives J:' *: and L: are t(e secondary drives t(at wi)) (o)d +)e system' $B $ata

and $B 7o& backps to disc. A"ter a backp to one o" t(ese drives (as +nis(ed' it

can be sent to S1 by creatin& a snaps(ot o" t(e nder)yin& 5BS Vo)me' or by

copyin& t(e individa) backp +)es direct)y to S1' as described in t(e sbseDent

section >Backp and !ecovery wit(ot 1rd party backp so"tware?.

.ab1e 3+ Samp1e S:, Server drive 1ayout $ith backup 7BS vo1umes

Windo$sDrive

4se

C: !oot vo)me inc)ded wit( 5C2instance$: SA# , 9S S67 so"twareS: Swap5: $B 7o& +)e<: E: %: ;: $B $ata +)e -=+ 2i1e System backups + DB ,o- backups=+ DB Data backups

Backp and !ecovery o" t(e SA# database and transaction )o& are accomp)is(edsin& t(e native S67 Server backp "nctiona)ity t(at can eit(er be sc(ed)ed and

eected interactive)y "rom t(e S67 Server 9ana&ement Stdio or via a script sin& ransact-S67 commands.

 st as wit( t(e +)e system backp described ear)ier' t(e on)y specia) considerationw(en sc(ed)in& and eectin& S67 Server backps on AWS is t(e backpdestination. ;nstead o" c(oosin& t(e backp destination "ape yo need to se)ect !is and point to t(e drive t(at is t(e >backp? 5BS vo)me t(at yo (avedesi&nated "or backps' *: "or 7o&- and L: "or $ata-backps in or eamp)e.

/

Page 17: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 17/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

;" case o" database !estore and !ecovery:

• <irst c(eck i" a)) reDired $ata and ransaction 7o& backps are sti)) avai)ab)eon t(e desi&nated >backp? 5BS vo)mes' *: and L: or eamp)e.

;" t(e avai)ab)e backps are not sab)e or incomp)ete' retrieve t(e missin&$ata and ransaction 7o& backps "rom Amazon S1 as described in t(esection >Copyin& backp data to' and retrievin& t(em a&ain "rom AmazonS1?.

• #er"orm S67 Server !estore and !ecovery' sin& t(e $ata and ransaction7o& backps t(at are avai)ab)e on t(e 5BS Vo)mes

<or detai)ed instrctions (ow to sc(ed)e database and transaction )o& backps'and per"orm restore and recovery by sin& eit(er t(e S67 Server 9ana&ementStdio or via a script sin& ransact-S67 commands p)ease re"er to:S:, Server )& ' Backin- 4p and Restorin- @o$'to .opics ;S:, Server0ana-ement Studio<

/B0 DB) ,4W on ,inu* or Windo$s

 ab)e = be)ow s(ows an eamp)e database )ayot "or $B2. <or additiona) in"ormation

on recommended drive,5BS con+&ration "or SA# systems on AWS' p)ease re"er to

t(e SAP on AWS Implementation Guide re"erenced at t(e be&innin& o" t(is &ide.

 (e secondary +)e systems !os_e"e_#ac$us Windows $rive J: and

!d#_data_#ac$us Windows $rive L: wi)) (o)d System and $B $ata and backps to

disc. (e +)e system !d#2!<%&D>!'og_arc(i)e Windows $rive *: is sed to )et $B2

atomatica))y arc(ive its $B transaction )o&s' a process mana&ed by t(e $B2

!$B9S itse)".

A"ter a backp to one o" !os_e"e_#ac$us or !d#_data_#ac$us (as +nis(ed' or a

transaction )o& (as been arc(ived to !d#2!<%&D>!'og_arc(i)e by t(e $B2 !$B9S' it

can be sent to S1 by creatin& a snaps(ot o" t(e nder)yin& 5BS Vo)me' or by

copyin& t(e individa) +)es direct)y to S1' as described in t(e sbseDent section

>Backp and !ecovery wit(ot 1rd party backp so"tware?.

.ab1e 6+ Samp1e DB) E1e system 1ayout $ith backup 7BS vo1umes on ,inu* orWindo$s

,inu* E1e system Windo$sDrive;s<

4se

! C: !oot vo)me inc)ded wit( 5C2instance

!samnt!usr!sa!d#2

$: SA# and $B2 so"tware

<s*a> S: Swap!d#2!<%&D>!'og_dir 5: Active $B ransaction 7o&s!d#2!<%&D>!sadata1-4 <: E: %:

;:$B $ata <i)e System -=

Page 18: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 18/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

/os_exe_backups + 2i1e System backups/db2/<SID>/log_archive  + Archived DB .ransaction ,o-s/db2_data_backups =+ DB Data backups

An eamp)e o" (ow to create $B2 database backps to !d#_data_#ac$us is &iven in>Appendi 2: ;B9 $B2 $atabase Backp?.<or detai)ed instrctions on $B2 database and transaction )o& backps' and $B2restore and recovery in SA# environments' p)ease re"er to:Database Administration Guide FSAP on /B0 DB) for ,inu* 4ni* and

Windo$sF

SAP 0a*DB on ,inu* or Windo$s

 ab)e = be)ow s(ows an eamp)e database )ayot "or 9a$B. <or additiona)

in"ormation on recommended drive,5BS con+&ration "or SA# systems on AWS'

p)ease re"er to t(e SAP on AWS Implementation Guide re"erenced at t(e be&innin&

o" t(is &ide in >#rereDisite $ocmentation?.

 (e secondary +)e systems !os_e"e_#ac$us' !d#_'og_#ac$us and !d#_data_#ac$us 

Windows $rives J:' *: and L: wi)) (o)d System $B 7o& and $B $ata and backps

to disc.

A"ter a backp to one o" t(ese +)e systems or Windows drives' it can be sent to S1

by creatin& a snaps(ot o" t(e nder)yin& 5BS Vo)me' or by copyin& t(e individa)

+)es direct)y to S1' as described in t(e sbseDent section >Backp and !ecovery

wit(ot 1rd party backp so"tware?.

.ab1e !+ Samp1e 0a*DB E1e system 1ayout $ith backup 7BS vo1umes on ,inu* or

Windo$s

,inu* E1e system Windo$sDrive

4se

! C: !oot vo)me inc)ded wit( 5C2instance

!samnt!usr!sa!sad#

$: SA# and 9a$B so"tware

<s*a> S: Swap!sad#!<%&D>!sa'og 5: $B ransaction 7o&!sad#!<%&D>!sadata1-4 <: E: %:

;:$B $ata <i)e System -=

/os_exe_backups + 2i1e System backups/db_log_backups  + DB ,o- backups/db_data_backups =+ DB Data backups

An eamp)e o" (ow to create 9a$B database backps to !d#_data_#ac$us and9a$B 7o& backps to !d#_'og_#ac$us is &iven in >Appendi =: SA# 9a$B$atabase Backp to a 7oca) <i)e System?.

Page 19: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 19/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

An eamp)e o" (ow to restore and recover a 9a$B database "rom >backp? 5BSVo)me Snaps(ots is &iven in >Appendi 3: SA# 9a$B $atabase !estore and!ecovery?.

SAP Sybase AS7 on ,inu* or Windo$s

 ab)e = be)ow s(ows an eamp)e database )ayot "or SA# Sybase AS5. <or additiona)

in"ormation on recommended drive,5BS con+&ration "or SA# systems on AWS'

p)ease re"er to t(e SAP on AWS Implementation Guide re"erenced at t(e be&innin&

o" t(is &ide in >#rereDisite $ocmentation?.

 (e secondary +)e systems !os_e"e_#ac$us' !d#_'og_#ac$us and !d#_data_#ac$us 

Windows $rives J:' *: and L: wi)) (o)d System' $B 7o& and $B $ata and backps

to disk.

A"ter a backp to one o" t(ese +)e systems or Windows drives' it can be sent to S1

by creatin& a snaps(ot o" t(e nder)yin& 5BS Vo)me' or by copyin& t(e individa)

+)es direct)y to S1' as described in t(e sbseDent section >Backp and !ecovery

wit(ot 1rd party backp so"tware?.

.ab1e 5+ Samp1e Sybase AS7 E1e system 1ayout $ith backup 7BS vo1umes on ,inu* orWindo$s

,inu* E1e system Windo$sDrive

4se

! C: !oot vo)me inc)ded wit( 5C2instance

!samnt!usr!sa!sy#ase

$: SA# and Sybase AS5 so"tware

<s*a> S: Swap!sad#!<%&D>!sa'og_1 5: $B ransaction 7o&!sad#!<%&D>!sadata_1-+ <: E: %:

;:$B $ata <i)e System -=

/os_exe_backups J: <i)e System backps/db_log_backups  *: $B 7o& backps/db_data_backups L: $B $ata backps

Backp and !ecovery o" t(e Sybase AS5 database and transaction )o& are

accomp)is(ed sin& t(e native Sybase AS5 backp "nctiona)ity t(at can beeected interactive)y or via a script sin& ransact-S67 commands.

 st as wit( t(e +)e system backp described ear)ier' t(e on)y specia) considerationw(en sc(ed)in& and eectin& Sybase AS5 backps on AWS is c(oosin& t(e correctbackp destination. *o need to save t(e Sybase AS5 dmps to t(e +)e system ordrive t(at is on t(e >backp? 5BS vo)me t(at yo (ave desi&nated "or backps'!d#_'og_#ac$us drive *: "or 7o&- and !d#_data_#ac$us drive L: "or $ata-dmpsin or eamp)e.

4

Page 20: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 20/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

 (e !d#_data_#ac$us +)e system drive L: wi)) (o)d t(e dmp ima&es o" t(e"o))owin& databases:

• <D,%&D> database SA# database

•master database

• sy#systemrocs database

• sy#mgmtd# database

• satoo's database *o can se t(e D./ D,%E command to create t(ese database dmp ima&es.

 (e !d#_'og_#ac$us +)e system drive L: wi)) (o)d dmp ima&es o" t(e transaction)o&. *o can se t(e D./ +%C&+ command to create t(ese transaction )o&dmp ima&es.

 5nsre t(at a comp)ete seDence o" transaction )o& arc(ives is avai)ab)e at a))

timesX SA# notes 334 and 31/ provide detai)s on (ow t(is can beac(ieved and atomated.

;n case o" database !estore and !ecovery:• <irst c(eck i" a)) reDired $ata and ransaction 7o& dmps are sti)) avai)ab)e

on t(e desi&nated >backp? 5BS vo)mesF !d#_data_#ac$us drive L: and!d#_'og_#ac$us drive *: in or eamp)e.

• ;" t(e avai)ab)e backps are not sab)e or incomp)ete' retrieve t(e missin&$ata and ransaction 7o& dmps "rom Amazon S1 as described in t(e section>Copyin& backp data to' and retrievin& t(em a&ain "rom Amazon S1?.

• #er"orm Sybase AS5 !estore and !ecovery' sin& t(e $ata and ransaction7o& dmps t(at are avai)ab)e on t(e 5BS Vo)mes

<or detai)ed instrctions (ow to create Sybase AS5 database and transaction )o&

dmp ima&es' and per"orm restore and recovery by sin& t(e Sybase AS5 ransact-

S67 commands p)ease re"er to t(e SA# $BA Eide: Sybase Adaptive Server

5nterprise and t(e SA# notes re"erred to in >#rereDisite $ocmentation?.

Backup and Recovery $ithout 3rd party backup soft$arence yo (ave created a backp on an 5BS vo)me' yo need to copy t(e backpdata to Amazon S1 to protect t(e data a&ainst 5BS vo)me "ai)re.

Copyin- backup data to and retrievin- them a-ain from Amazon S3

Amazon S1 stores data as obects wit(in bckets. An obect is comprised o" a +)eand optima))y and metadata t(at describes t(at +)e. ;t is recommended t(at yocreate a dedicated Amazon S1 bcket to store yor backps. *o can se onebcket to store backps "rom m)tip)e systems. o (e)p or&anize backps "romdierent systems and dierent backp types i.e. +)e system' $B' transaction )o&'etc. yo can create m)tip)e "o)ders wit(in a bcket.

20

Page 21: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 21/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

<or detai)ed instrctions (ow to create an Amazon S1 bcket p)ease re"er to t(e Amazon S3 Getting Started Guide(ttp:,,docs.amazonwebservices.com,AmazonS1,)atest,&s&,Creatin&ABcket.(tm)

AWS provides t(ree met(ods to copy data direct)y to Amazon S1:• AWS 9ana&ement Conso)e

• AWS S$T A#;

• S1 !5S A#;

<ortnate)y yo do not need to deve)op yor own command )ine inter"ace to copydata to Amazon S1. Varios command )ine inter"aces eist t(at yo can incorporateinto a script to copy data to or retrieve data "rom Amazon S1. A "ew o" t(eseAmazon S1 command )ine inter"aces are )isted be)ow:

 

C1oudBerry ,abs > S3 backup command 1ine interface ;Windo$son1y<

(ttp:,,www.c)odberry)ab.com,de"a)t.aspPpa&eUbackpcmd 

s3cmd ;,inu* and Windo$s<(ttp:,,s1too)s.or&,s1cmd

 

s3e*e ;Windo$s on1y<(ttp:,,s1.codep)e.com

Be)ow are samp)e commands sin& s3cmd' ca))ed "rom eit(er a 7in s(e)) orwindows command prompt.

Copy a backp stored on an 5BS vo)me to Amazon S1:

s3cmd ut <#ac$u_i'e> <s35!!#uc$et_name!o'der_name>

!etrieve a backp "rom Amazon S1 to an 5BS vo)me to be sed "or a restore:

s3cmd get <s35!!#uc$et_name!o'der_name!#ac$u_i'e>

Creatin- a Snapshot of a backup 7BS Vo1ume

;nstead o" copyin& and retrievin& sin&)e +)es to Amazon S1' yo can a)so create asnaps(ot o" t(e comp)ete 5BS Vo)me. (e snaps(ot wi)) atomatica))y be stored inAmazon S1 and can sbseDent)y be sed to create new 5BS Vo)mes t(at contain

t(e same data as stored in t(e snaps(ot.

Be)ow are samp)e commands' sin& t(e 5C2 Command 7ine oo)s' ca))ed "rom eit(era 7in s(e)) or windows command prompt.

Create a snaps(ot o" an 5BS vo)me t(at is atomatica))y stored in AmazonS1:

2

Page 22: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 22/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

ec2-create-snas(ot -d <DE%C&/&+> <67.E>

Create a new 5BS Vo)me "rom an 5BS snaps(ot stored in Amazon S1:

ec2-create-)o'ume --snas(ot <%+/%> -s <%&:E>; - <6&7_:+E>

Attac( an 5BS Vo)me to an Amazon 5C2 instance:

ec2-atac(-)o'ume <67.E> -i <&+%+CE> -d <DE6&CE>

Backup and Recovery usin- 3rd party backup soft$are (is section discsses sin& 1rd party backp so)tions to backp SA# systemsrnnin& on AWS. 9any o" t(e same reasons w(y yo wo)d c(oose to se a 1rd 

party enterprise backp so)tions "or mana&in& t(e backp and recovery o" SA#systems rnnin& on traditiona) on-premise in"rastrctre a)so app)y to backin& pSA# systems on AWS:

• Centra)ized backp sc(ed)e mana&ement

• Atomated $ata !etention and $isposition #o)icy

• C)ients and a&ents "or varios operatin& systems and databases

• !eportin&

4sin- 3rd party backup soft$are on AWS

8sin& an enterprise backp so)tion on AWS is simi)ar to (ow yo wo)d operate it ina traditiona) on-premises in"rastrctre. (e on)y specia) consideration' asdiscssed ear)y in t(is &ide' is t(e backp destination. 9ost eistin& enterprisebackp so)tions do not yet spport backp direct)y to Amazon S1. <or enterprisebackp so)tions t(at do not spport backp direct)y to S1 yo can +rst backp to a)oca) 5BS vo)me attac(ed to t(e instance and t(en copy t(e backp data toAmazon S1. 9ost a)) enterprise backp so)tions a))ow yo to rn pre and postscripts be"ore and a"ter t(e backp is rn. ne o" t(e post scripts yo wo)d rnwo)d be a script to copy t(e backp data to Amazon S1 as described ear)ier in t(issection.

3rd party backup soft$are that supports direct backup to Amazon S3

Be)ow is a )ist o" 1rd party backp prodcts t(at spport direct backp to Amazon S1.

 Zmanda $ Amanda %nterprise Bacup

LmandaMs H Amanda Enterprise backp site spports direct backp to Amazon S1. Amanda Enterprise (as backp c)ients and a&ents "or dierent operatin& systemsand databases. <or additiona) in"ormation on t(e Amazon Enterprise backp sitep)ease visit LmandaMs website: (ttp:,,www.zmanda.com,amanda-a&ent-overview.(tm)

22

Page 23: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 23/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

CloudBerry #ab

C)odBerry 7ab oers a site o" prodcts desi&ned to work wit( Amazon S1. woprodcts oered by C)odBerry 7ab t(at can be sed to backp Windows Server and9S S67 are )isted be)ow:

• 

!nline Backup "or Winders Ser#er •  !nline Backup "or MS S$% Ser#er 

<or additiona) in"ormation on t(e visit C)odBerry 7abMs website:(ttp:,,www.c)odberry)ab.com,

 (e "o))owin& &rap(ic s(ows a direct backp to Amazon S1:

2i-ure 6+ Backp direct)y to S1

21

Page 24: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 24/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

Appendi* (+ ,inu* System Backup usin- .AR (is appendi provides an eamp)e "or creatin& a 7in +)e system backp t(at can

be sed in case o" a ")) system )oss.

G5: %;S S BACT8# CAGG B5 8S5$   !5S!5  %5 $AABAS5' AS $AABAS5 $AA AG$ 

 !AGSAC;G 7ES A!5 S#5C;<;CA77* 5JC78$5$ <!9  %5 BACT8#. A<5! !5S!;GE  %;S 

BACT8#' !5S!5 AG$ !5CV5!* <  %5 $AABAS5 S%87$ <77W. 

 (e eamp)e procedre is as "o))ows:

5nsre yo (ave eno&( space on t(e backp 5BS Vo)me +)e system!os_e"e_#ac$us 

G5: $AABAS5 $AA' !AGSAC;G 7ES AG$ 98G5$ BACT8# <;75 S*S59S W;77 B5 

5JC78$5$ <!9  %;S BACT8# 

2 Start t(e S' SA# and $B9S binaries and pro+)es backpa. 7o&on into t(e S start a tar backp on t(e !os_e"e_#ac$us +)e system

G5: %5 8S5 < C9#!5SS;G A<<5CS  %5 C#8 8;7;LA;G AG$ BACT8#  ;95.

C%S5   8S5 C9#!5SS;G ! G B* A$$;GE ! !59V;GE  %5 >--EL;#? #A!A955! 

<  %5  A! C99AG$ 

For database type o& Ma'!B use t(is script as an e'ample)

export exclusion_file=/os_exe_backups/backup-exclude-dirstxtexport backup_file=/os_exe_backups/backuptarg!export log_file=/os_exe_backups/backupstdoutexport error_log_file=/os_exe_backups/backupstderr

=Create t(e e"c'usion i'e=E"c'ude % directories>"exclusion_fileecho #/t$p# >>"exclusion_fileecho #/proc# >>"exclusion_fileecho #/s%s# >>"exclusion_fileecho #/dev# >>"exclusion_file=E"c'ude data#ase i'esecho #/sapdb/<SID>/sapdata&# >>"exclusion_fileecho #/sapdb/<SID>/saplog# >>"exclusion_file=E"c'ude t(e #ac$u directoriesecho #/os_exe_backups# >>"exclusion_fileecho #/db_data_backups# >>"exclusion_fileecho #/db_log_backups# >>"exclusion_file

=un t(e #ac$ucd /os_exe_backupstar -v --g!ip -cf "backup_file / --exclude-fro$="exclusion_file > "log_file 2> "error_log_file

=to monitor=tai' - 'og_i'e=tai' - error_'og_i'e

2=

Page 25: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 25/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

G5: %5 C99AG$ %AS B55G #!V;$5$ AS AG 5JA9#75' #75AS5  5S AG$ C%AGE5 AS 

!568;!5$. 

For database type o& !B2 use t(is script as an e'ample)export exclusion_file=/os-exe-backups/exclude-dirstxtexport backup_file=/os-exe-backups/backuptarg!export log_file=/os-exe-backups/backupstdoutexport error_log_file=/os-exe-backups/backupstderr

=Create t(e e"c'usion i'e=E"c'ude % directories>"exclusion_fileecho #/t$p# >>"exclusion_fileecho #/proc# >>"exclusion_fileecho #/s%s# >>"exclusion_fileecho #/dev# >>"exclusion_file

=E"c'ude data#ase-re'ated i'esystemsecho #/db2/<SID>/sapdata&# >>"exclusion_file'echo #/db2/<SID>/sapdata<n># >>"exclusion_fileecho #/db2/<SID>/log_dir# >>"exclusion_fileecho #/db2/<SID>/log_archive# >>"exclusion_file

=E"c'ude t(e #ac$u directoriesecho #/os-exe-backups# >>"exclusion_fileecho #/db2-data-backups# >>"exclusion_file

=un t(e #ac$ucd /os-exe-backupstar -v --g!ip -cf "backup_file / --exclude-

fro$="exclusion_file > "log_file 2> "error_log_file

=to monitor=tai' - 'og_i'e=tai' - error_'og_i'e

G5: %5 C99AG$S %AV5 B55G #!V;$5$ AS AG 5JA9#75' #75AS5  5S AG$ C%AGE5 

AS !568;!5$. 

 o send t(e backp to S1' create an 5BS snaps(ot o" t(e backp 5BS vo)me t(at

(o)ds t(e !os_e"e_#ac$us +)e system.

;t is recommended to ta& t(e snaps(ot wit( a description )ike

><EC2-&+%+CE-&D>_%_E?E_,C@/%_<AAAA-..-DD>?'

w(ere <EC2-&+%+CE-&D> can be retrieved "rom t(e 5C2 metadata web service

t(ro&(

BE (tt5!!192F4192F4!'atest!meta-data!instance-idG

7in too)s )ike cur' or *get can be sed to isse t(e above %# command "rom a

)oca) s(e)) on t(e 5C2 instance.

23

Page 26: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 26/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

9ore in"ormation on sin& 5C2 instance metadata is avai)ab)e at

(ttp:,,docs.amazonwebservices.com,AWS5C2,)atest,8serEide,A5S$E-c(apter-

instancedata.(tm)

Appendi* )+ /B0 DB) Database Backup to a 1oca1

2i1e System

DB) ro11for$ard recovery9ake sre t(at yo (ave enab)ed yor $B2 database "or ro))"orward recovery.

!o))"orward recovery mode enab)es yo to recover "rom a database backp to t(e

most recent point in time sin& arc(ived database )o& +)es and is a prereDisite "or

takin& $B2 on)ine backps. ;" yo (ave not con+&red yor $B2 database "or

ro))"orward recovery mode' yo cannot take on)ine backps. ;nstead yo wi)) need tos(tdown t(e SA# system and $B2 to take oOine backps. <or production

systems' yor database must be in ro))"orward recovery mode. <or more detai)s

re"er to t(e Y$atabase Administration Eide SA# on ;B9 $B2 "or 7in' 8G;J' and

Windows?.

 (e +)e system names )isted in ab)e = wi)) be sed "or t(e "o))owin& eamp)es.

Steps to enab1e ro11for$ard recovery and set up DB) 1o-E1e mana-ement

Stop SA# and $B22 5nab)e ro))"orward recovery by pdatin& t(e database con+&ration

parameter 7EA!C%95%:

su – d#2<sid>d#2 udate d# cg or <%&D> using 'ogarc(met(1D&%@5!d#2!<%&D>!'og_arc(i)e

 (e database wi)) now be p)aced in backp pendin& state. A ")) database

backp mst be taken.

<rom t(is point onwards $B2 wi)) atomatica))y arc(ive )o& +)es "rom t(e

,db2,ZS;$[,)o&Qdir +)esystem to t(e ,db2,ZS;$[,)o&Qarc(ive +)esystem.

1 ake a ")) database oOine backp

d#2 #ac$u data#ase <sid> to H!d#_data_#ac$usH comress

= Con+&re a retention period "or yor database backps and t(e

correspondin& database )o& +)es. <or eamp)e i" yo want to keep at )east =

database backps and yo want to remove srp)s backps o)der t(an 10

days and a)) correspondin& database )o& +)es' con+&re $B2 in t(e "o))owin&

way:

2/

Page 27: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 27/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

d#2 udate d# cg or <sid> using +._D,_,C@/ 4d#2 udate d# cg or <sid> using EC_&%_EE++ 30d#2 udate d# cg or <sid> using _DE7_EC_,I +

3 Start SA#

7*amp1e+ DB) ,4W fu11 on1ine data and 1o- backup9ake sre t(e !d#_data_#ac$us +)e system as "rom ab)e = (as eno&( stora&e

space' and proper read,write permissions.

#)ease remember to se t(e re"erences mentioned in section >#rereDisite

$ocmentation? as primary docmentation. ;n addition t(e SA# on $B2 78W "or

8ni and Windows $B/ "orm on t(e SA# Commnity Getwork SCG can be

cons)ted "or ot(er Destions. (e "o))owin& sections mere)y provide eamp)es' and

s(o)d not be sed as a &enera) re"erence.

 wo options to back p t(e $B2 78W database wi)) be s(own in t(e "o))owin&

sections:

• ption : back p t(e database direct)y "rom t(e SA# system

• ption 2: back p t(e database sin& t(e C7;

ption : back p t(e database direct)y "rom t(e SA# system

7o& in to t(e SA# system wit( an admin ser2 5ecte t(e transaction ?nDBAC#CHP/.1 n t(e )e"t screen pane)' navi&ate to 

 Iobs?DBA P1annin- Ca1endar= ;n t(e ca)endar area' se)ect any ce)) representin& time o)der t(an crrent time

and c)ick on \AddM btton.3 n t(e pop-p window' se)ect \Database Backup to DeviceM action' c(oose

\#n1ineM backp mode wit( \/nc1ude ,o-sM option and enter

?db)JdataJbackups in t(e \Device?DirectoryM +e)d/ C)ick on \7*ecute /mmediate1yM btton

ption 2: back p t(e database sin& t(e C7;

7o& in to t(e 5C2 instance2 5ecte t(e "o))owin& commands:

su ( db2<sid> =start on'ine comressed #ac$u inc'uding 'ogsdb2 backup database <sid> online to #/db2_data_backups# co$press ) include logs

1 Wait nti) t(e backp (as comp)eted.

 *o wi)) see t(e "o))owin& messa&e w(en t(e backp (as comp)eted:

2

Page 28: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 28/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

Backup successful. The timestamp for this

ackup ima!e is " 2#$$$22#22$428

 (is messa&e is s(own in t(e "o))owin& )o& +)e' )ocated in t(e backp

directory:

<%&D>0d#2<sid>+DE0000C+0000<datetime stam>001

= Backp t(e database mana&er con+&ration reDired to rebi)d t(e database:

su ( db2<sid> cd /db2_data_backupsdb2cfexp <SID>_cfg_backuptxt *+,.

3 Backp t(e $B2 recovery (istory +)e:

su ( db2<sid> cp /db2/<SID>/db2<sid>/01D3333/S453333&/db2rhistasc ) /db2_data_backups

$B2 transaction )o& +)e mana&ement

;t is recommended to con+&re t(e $B2 transaction )o& mana&ement as mentioned

in t(e eamp)e above and described in >;B9 $B2 8niversa) $atabase "or 8G;J and

Windows - Gew 7o& <i)e 9ana&ement?' section 2.2..

As "rom $B2 78W V4.3' atomatic )o& +)e retention mana&ement can be con+&red

in addition. (is is described in t(e eamp)e above and in t(e $atabaseAdministration Eide ISA# on ;B9 $B2 "or 7in' 8ni and WindowsI' section >$B2

V4.3 and %i&(er n)y: Atomatic 7o& <i)e and Backp !etention?.

 (e content o" t(e ,db2,ZS;$[,)o&Qarc(ive +)e system s(o)d be sent to S1 on a

re&)ar basis by creatin& a direct snaps(ot o" t(e nder)yin& 5BS Vo)me' or by

copyin& added +)es individa))y to S1' optima))y eac( time a"ter a transaction )o&

was written into t(e $B2-7E-A!C%;V5 +)e system. (e snaps(ot o" t(e 5BS Vo)me

can be taken direct)y wit(ot dismontin& t(e +)e system i" t(is +)e system is t(e

on)y one to reside on a sin&)e 5BS Vo)me no stripin&' etc..

Create a snaps(ot to send t(e backp to S1;t is recommended to ta& snaps(ots wit( a description )ike

• ><%&D>_D,2_D_,C@/%_<AAAA-..-DD>? "or t(e database data backps

• ><%&D>_D,2_7_C&6E_<AAAA-..-DD--..-%%>? "or t(e database arc(ive )o&

backps

2

Page 29: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 29/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

Appendi* 3+ DB) ,4W Database Restore and

Recovery!estore and recovery o" databases reDires care") p)annin& and preparation be"ore

eection. ake time "or root-case ana)ysis to be better ab)e to identi"y t(e most

e]cient recovery strate&y be"ore eectin&.

<or eamp)e' data on)y need to be restored "rom S1 i" recovery is not possib)e

anymore "rom data and backps t(at are a)ready avai)ab)e on t(e system. ;" a

database needs to be recovered to t(e )atest possib)e point in time' a)ways make

sre to not overwrite and destroy t(e )atest database transaction )o&s. As t(ese are

typica))y not yet arc(ived and,or backed p to S1' t(e )atest transactions contained

in t(ese )o&s co)d t(en &et )ost "oreverX

 (is &ide does not intend to rep)ace t(e ori&ina) backp and restore

docmentation o" t(e database vendors t(at was re"erenced in section >#rereDisite

$ocmentation?. As especia))y restore and recovery scenarios are most diverse and

dependent on t(e environment and "ai)re case' it is stron&)y recommended to

"o))ow t(e ori&ina) docmentation in case o" a rea) "ai)re.

7*amp1e+ DB) Restore and Recovery from KbackupL 7BS

Vo1ume Snapshots ;" t(is is an $!' make sre yo (ave restored t(e S2 9ont t(e correct $atabase backp on t(e )oca) 5C2 instance

G5: %;S S5# ;S G7* !568;!5$ ;<  %5 A7!5A$* 98G5$ $AABAS5 BACT8# ;S G A$568A5 <! !5CV5!*' ! ;<  %5 7A5S $AABAS5 BACT8# ;S G AVA;7AB75 AG*9!5 G 

 %5 5C2 ;GSAGC5 

a. Create an 5BS vo)me based on an 5BS snaps(ot. n Vo1umes' c)ick on Create Vo1umes2. ype t(e Size o" t(e Vo)me1. Se)ect t(e same Avai)abi)ity Lone as t(e ;nstance=. n Snapshot se)ect t(e )atest $B backp3. C)ick on es Create

b. Attac( t(e vo)me to t(e 5C2 /nstancec. 9ont t(e +)e system

. 7o&on to t(e 5C2 instance sin& ptty' or any ot(er ss( c)ient2. 9ont t(e backp +)esystem

5amp)e:vgscanvgi$port vgbackupvgchange vgbackup -a %

 $kdir /backups

24

Page 30: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 30/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

 $ount /dev/vgbackup/backups /db_data_backups

1 9ont t(e reDired $atabase )o&s on t(e instance

G5: %;S ;S S5# G7* !568;!5$ ;<  %5 AVA;7AB75 A!C%;V5$ 7ES A!5 G S8<<;C;5G <! 

!5CV5!*' ! ;<  %5* A!5 G AVA;7AB75 AG*9!5 

a. Create an 5BS vo)me based on an S1 )o& backp snaps(ot. n Vo1umes' c)ick on Create Vo1umes2. ype t(e Size o" t(e Vo)me1. Se)ect t(e same Avai)abi)ity Lone as t(e ;nstance=. n Snapshot se)ect t(e )atest )o& backp3. C)ick on es Create

b. Attac( t(e vo)me to t(e /nstancec. 9ont t(e <S

G5: <! SA<5* !5ASGS' %5 <;75 S*S59 W;77 B5 98G5$   AG%5! 98G #;G AS 

 %5 A!C%;V5 7E <;75 S*S59 ;S57<. . 7o&on to t(e instance sin& ptty' or any ot(er ss( c)ient2. 9ont t(e backp +)esystem

5amp)e:vgscanvgi$port vgbackuplogvgchange vgbackuplog -a %

 $kdir /$nt/backuplogs $ount /dev/vgbackuplog/backuplogs /$nt/backuplogs

= !estore and recover t(e database sin& C7;

a. 7o&on into t(e instance as rootb. 5ecte t(e "o))owin& commands

= 7og on as d#2<sid>su ( db2<sid> 

= & reJuiredK coy additiona' D, 'ogs to t(e deau't 'og arc(i)e 'ocation= Lor e"am'e5cp (rp /$nt/backuplogs/6 /db2/<SID>/log_archive

= %tart data#ase managerdb2start

= %tart t(e d# reco)erydb2 recover db <sid> using histor% file 7/db_data_backups/db2rhistasc8

= nce D, reco)ery is doneK restore coniguration stored outside o D,cd /db_data_backupsdb2cfi$p <SID>_cfg_backuptxt

3 Start t(e SA# system

10

Page 31: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 31/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

su - <sidad$> startsap all

Appendi* 6+ SAP 0a*DB Database Backup to a

,oca1 2i1e System

7*amp1e+ fu11 on1ine data and 1o- backup for 0a*DB9ake sre t(e $B-$AA-BACT8#S and $B-7E-BACT8#S +)e systems (ave eno&(

stora&e space' and ensre proper read,write permissions "or t(ese +)e systems. (e

+)e system names )isted in ab)e 3 wi)) be sed in t(is eamp)e.

Apart "rom t(e &enera) re"erences mentioned in section >#rereDisite$ocmentation?' speci+c 9a$B Backp , !ecovery eamp)es can a)so be "ond at

>SA# 9a$B %owo? on t(e SA# Commnity Getwork SCG.

 wo options to back p t(e 9a$B database wi)) be s(own in t(e "o))owin& sections:

• ption : database and )o& backp sin& 9a$B $atabase Stdio

• ption 2: database and )o& backp sin& $B9C7;

Create 0a*DB backup temp1ates

a. Start t(e SA# 9a$B $atabase Stdio

;" not insta))ed' it can be down)oaded "rom(ttp:,,www.sdn.sap.com,ir,scn,madb-down)oadsand insta))ed on any compter "or remote mana&ement

b. Add t(e server and database into t(e )andscape i" reDiredEo to: 9y 7andscape , Servers , ri&(t c)ick ,Add,?Server,$atabase?

c. ype t(e server name or ip: on >Server Game:? and c)ick netd. Se)ect t(e $atabases and c)ick on <inis(e. 7o& in to t(e database sin& t(e CG!7 ser

9y 7andscape , Servers , Zservername,ip[,Z$B[,ri&(t c)ick ,7o&in". !i&(t c)ick on t(e database and c)ick on Administration&. Eo to t(e Backup ab(. 5pand .emp1ates

i. Create a Backp temp)ate "or <877 Backp . C(oose 8e$M

k. C)ick #k ). Create a

Backp

temp)ate "or

7E Backp

1

Game Zemp)ate Game[ can be <877Backp ype C9#755 $AA$evice ype <;75Backp oo) GG5$evice,<i)e ,dbQdataQbackps,ZS;$[Q<877Compressed 8nse)ect

Page 32: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 32/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

#ption (+ Back up the database usin- Database Studio

Start t(e SA# 9a$B $atabase Stdio2 7o& in to t(e database sin& t(e CG!7 ser

0y ,andscape ? Servers ? Nservername?ipO?NDBO? ri&(t c)ick ?,o-in1 !i&(t c)ick on t(e database and c)ick on Administration= Eo to t(e Backup ab3 5pand .emp1ates/ !i&(t c)ick on t(e temp)ate ><877? and c)ick on Backup

#ption (+ Back up the database transaction 1o-s usin- Database Studio

Start t(e SA# 9a$B $atabase Stdio2 7o& in to t(e database sin& t(e CG!7 ser

0y ,andscape ? Servers ? Nservername?ipO?NDBO? ri&(t c)ick ?,o-in1 !i&(t c)ick on t(e database and c)ick on Administration= Eo to t(e Backup ab

3 5pand .emp1ates/ !i&(t c)ick on t(e temp)ate >7E? and c)ick on Backup

#ption )+ Back up the database usin- DB0C,/

7o& in to t(e 5C2 instance2 5ecte t(e "o))owin& commands

su - <sid>ad$ =start an uti'ity sessiondb$cli (d <SID> -. c -u.95=start #ac$u using t(e tem'ate L77

 backup_start :.55

1 Wait nti) t(e backp (as comp)eted

#ption )+ Back up the database 1o- usin- DB0C,/

7o& in to t(e 5C2 instance2 5ecte t(e "o))owin& commands

su - <sid>ad$ =start an uti'ity session

12

Game Zemp)ate Game[ can be 7EBackp ype 7E$evice ype <;75Backp oo) GG5

$evice,<i)e ,dbQ)o&Qbackps,ZS;$[Q7ECompressed 8nse)ect

Page 33: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 33/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

db$cli (d <SID> -. c -u.95=start #ac$u using t(e tem'ate L77

 backup_start 51;

3M Wait nti) t(e backp (as comp)eted

Schedu1e hour1y automatic 1o- backup usin- Database Studio

Start t(e SA# 9a$B $atabase Stdio2 7o& in to t(e database sin& t(e CG!7 ser

0y ,andscape ? Servers ? Nservername?ipO?NDBO? ri&(t c)ick ?,o-in1 !i&(t c)ick on t(e database and c)ick on

Administration .asks?Automatic ,o- Backup= Se)ect t(e temp)ate >,#G? "rom t(e )ist3 Se)ect >Create a 1o- backup every NO minutes?/ ype 5 on t(e NO +e)d C)ick on Activate

 (e 5BS snaps(ot creation o" t(e vo)me t(at (o)ds t(e $B-7E-BACT8#S +)e

system can now be atomated t(ro&( a script' time-sync(ronized wit( t(e

atomatic )o& backp.

Create a snapshot to send the backup to S3

#)ease re"er to t(e section >Creatin& a Snaps(ot o" a backp 5BS Vo)me? "or t(e

detai)ed steps.

;t is recommended to ta& snaps(ots wit( a description )ike

• ><%&D>_.?D,_D_,C@/%_<AAAA-..-DD>? "or t(e database data backps

• ><%&D>_.?D,_7_,C@/%_<AAAA-..-DD--..-%%>? "or t(e database )o&backps

11

Page 34: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 34/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

Appendi* !+ SAP 0a*DB Database Restore and

Recovery!estore and recovery o" databases reDires care") p)annin& and preparation be"ore

eection. ake time "or root-case ana)ysis to be better ab)e to identi"y t(e most

e]cient recovery strate&y be"ore eectin&.

<or eamp)e' data on)y need to be restored "rom S1 i" recovery is not possib)e

anymore "rom data and backps t(at are a)ready avai)ab)e on t(e system. ;" a

database needs to be recovered to t(e )atest possib)e point in time' a)ways make

sre to not overwrite and destroy t(e )atest database transaction )o&s. As t(ese are

typica))y not yet arc(ived and,or backed p to S1' t(e )atest transactions contained

in t(ese )o&s co)d t(en &et )ost "oreverX

 (is &ide does not intend to rep)ace t(e ori&ina) backp and restore

docmentation o" t(e database vendors t(at was re"erenced in section >#rereDisite

$ocmentation?. As especia))y restore and recovery scenarios are most diverse and

dependent on t(e environment and "ai)re case' it is stron&)y recommended to

"o))ow t(e ori&ina) docmentation in case o" a rea) "ai)re.

7*amp1e+ 0a*DB Restore and Recovery from KbackupL 7BS

Vo1ume Snapshots ;" t(is is a $!' make sre yo (ave restored t(e S and SA# System' eit(er "rom

an ;ma&e Backp A9; and,or "rom a backp as described in >Appendi : 7in

System Backp sin& A!?.2 ;" reDired' mont t(e $atabase backp on t(e 5C2 instance

G5: G!9A77*' %5 9S !5C5G BACT8# S%87$ A7!5A$* B5 AVA;7AB75 G  %5 5C2

;GSAGC5 

a. n)y i" reDired' create a new 5BS vo)me based on an S1 snaps(ot backp. n Vo1umes' c)ick on Create Vo1umes2. ype t(e Size o" t(e Vo)me1. Se)ect t(e same Avai)abi)ity Lone as t(e ;nstance=. n Snapshot se)ect t(e )atest S backp3. C)ick on es Create

b. Attac( t(e vo)me to t(e /nstancec. 9ont t(e +)e system

. 7o& in to t(e 5C2 instance2. 9ont t(e !d#_data_#ac$us +)e system

5amp)e i" sin& 7V92:vgscanvgi$port vgbackup

1=

Page 35: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 35/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

vgchange vgbackup -a % $kdir /db_data_backups $ount /dev/vgbackup/db_data /db_data_backups

1 ;" reDired' repeat t(e previos step' bt now "or t(e !d#_'og_#ac$us +)e system

G5: G!9A77*  %5 9S !5C5G BACT8# S%87$ A7!5A$* B5 AVA;7AB75 G  %5 5C2

;GSAGC5 

#ption (+ Database Restore and Recovery usin- 0a*DB Database Studio

!estore t(e database sin& $atabase Stdioa. 7o&on into t(e instance as rootb. Start Qserverc. 7o&on into t(e database sin& t(e CG!7 ser

 0y ,andscape ? Servers ? Nservername?ipO?NDBO?;ri-ht c1ick<

?,o-ind. Set t(e database in admin mode: !i&(t c)ick on t(e database and c)ick on

Administration .asks?Set State?Admine. Start t(e recovery: !i&(t c)ick on t(e database and c)ick on

Administration .asks?RecoveryM". n t(e !ecovery o" $atabase window' c)ick on Recover a medium&. Se)ect 24,, "rom t(e temp)ate )ist and t(en 8e*t(. C)ick on Starti. C)ick #k  on t(e in t(e Con+rmation ;nitia)ization database window

 . Wait nti) t(e restore (as comp)eted.2 App)y transaction )o&s sin& $atabase Stdio

a. <irst restore t(e database sin& dbmc)i or $atabase Stdio wit(ot restartin&

t(e database

b. 7o&on into t(e database sin& t(e CG!7 ser 0y ,andscape ? Servers? Nservername?ipO?NDBO?;ri-ht c1ick< ?,o-inc. Start t(e recovery: !i&(t c)ick on t(e database and c)ick on

KAdministration .asks?RecoveryMLd. *o can se)ect i" yo want to restore nti) a speci+c time #oint in time

recovery' in t(is eamp)e we wi)) restore nti) t(e )ast avai)ab)e )o&' so do not

se)ect >!ecover nti) a speci+c time.? Se)ect !ecover a medim and t(en

C)ick 8e*t G5: C!5A5 AG 5BS V7895 <!9 AG S1 7E BACT8# SGA#S% H <77W;GE  %5 

7E S5685GC5 H AG$ 98G ;    %5 ,$B Q 7E Q BACT8#S ;< ; ;S !568;!5$   A##7* 

7$5! 7ES AS  %5 G5S AVA;7AB75 G  %5 S*S59. %W5V5!' B5<!5 $;GE S' 9AT5 

S8!5   %AV5 A SGA#S% AVA;7AB75 <  %5 7A5S CG5G < ,$B Q 7E Q BACT8#S <;75 S*S59' AS  %A 9;E% B5 !568;!5$ 7A5! ;G  %5 !5CV5!* #!C5SS. 

e. Se)ect ,#G "rom t(e temp)ate )ist and t(en 8e*t". Se)ect t(e ,o- <i)e Gmber and (en Get ;n t(is case pt t(e net )o& a"ter

t(e backp and c)ick 8e*t&. C)ick Start(. (e recovery session wi)) try to recover a)) consective )o&s nti) it "ai)s wit( a

missin& )o&. *o can c(oose to restore more )o&s and contine^

13

Page 36: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 36/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

i. C(oose Start Database and t(en Continue 

#ption )+ Database Restore and Recovery usin- 0a*DB DB0C,/

!estore t(e database sin& $B9C7;

a. 7o& in to t(e 5C2 instance as rootb. 5ecte t(e "o))owin& eamp)e commands

=Li" ermissionschon sdb'sdba /sapdb/<SID>/sapdatachon sdb'sdba /sapdb/<SID>/saplog

='ogon as <sid>admsu - <sid>ad$ 

=start t(e d# in D.&+ modedb$cli -. c db_ad$in

=7ogon a reco)ery sessiondb$cli -. c

=7ist t(e #ac$u (istoryK and 'ast 'ogs=ta$e notes o t(e ne"t 'og num#er

 backup_histor%_open

 backup_histor%_list -r last -clabelactionpagesfirstloglastlog$edia

=& ossi#'eK c(ec$ i t(e #ac$u isaccessed as e"ectedrecover_check :.55 data

=estore t(e data#ase

db_connectrecover_start :.55 data

c. Wait nti) t(e restore is comp)eted o monitor t(e restore session' se t(e "o))owin& command5amp)e:

='ogon as <sid>admsu - <sid>ad$ 

=start restore session sessiondb$cli -. c -u.95 -d <SID> recover_state

9onitor t(e >#a&es rans"erred? and >#a&es 7e"t?2 !estore t(e database )o&s sin& $B9C7;

a. Be"ore restorin& )o&s' yo s(o)d (ave (ad restored a database wit(ot

restartin&' see step or step 1. (e $B s(o)d be in A$9;G mode

1/

Page 37: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 37/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

b. 7o&on into t(e instance as rootc. 5ecte t(e "o))owin&

su - <sid>ad$ 

=7ogon a reco)ery sessiondb$cli -. c

=7ist t(e #ac$u (istoryK and 'ast 'ogs=ta$e notes o t(e ne"t 'og num#er

 backup_histor%_open

 backup_histor%_list -r last -clabelactionpagesfirstloglastlog$edia

service_connect

=estore t(e 7ogs *(ere <???> is t(e ne"t 'og seJuence

db_connectrecover_start 51; log <> 

=& t(e reco)ery ends *it( -8020 error code and you sti''(a)e 'ogs to reco)er t(at are not 'isted in t(e #ac$u(istoryK you can continue *it( t(e o''o*ing commandsK*(ere <AAA> is t(e ne"t 'og to reco)erK reco)er 'og #y 'ogunti' you restore t(e 'atest a)ai'a#'e 'og

recover_replace 51; /backuplog/<SID>_51;<???> 

=se t(e o''o*ing command to re)ie* t(e status o t(edata#ase ater t(e restore

db_restartinfo

=& t(e consistentN1 t(e data#ase can start

d. 8se t(e "o))owin& commands to start t(e recovery i" yo want to restore in

point in time recovery

su - <sid>ad$ 

=7ogon a reco)ery sessiondb$cli -. c

=7ist t(e #ac$u (istoryK and 'ast 'ogs=ta$e notes o t(e ne"t 'og num#er

 backup_histor%_open

 backup_histor%_list -r last -clabelactionpagesfirstloglastlog$edia

service_connect

1

Page 38: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 38/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

=estore t(e 7ogs *(ere <???> is t(e ne"t 'og seJuence

db_connectrecover_start 51; log <> .09I5 <date> <ti$e> =& t(e reco)ery ends *it( -8020 error code and you sti''

(a)e 'ogs to reco)er t(at are not 'isted in t(e #ac$u(istoryK you can continue *it( t(e o''o*ing commandsK*(ere <AAA> is t(e ne"t 'og to reco)erK reco)er 'og #y 'ogunti' you restore t(e 'atest a)ai'a#'e 'og

recover_replace 51; /backuplog/<SID>_51;<???> 

=+ote5 t(e data#ase *i'' #e ut on +7&+E automatica''yater t(e D, is reco)ered unti' t(e time seciied

1 Start t(e SA# instance

su - <sidad$> startsap all

At t(is point t(e SA# instance s(o)d be started wit( no isses

= A"ter restorin& t(e database' yo can remove t(e backp 5BS Vo)me i" reDireda. 7o&on into t(e 5C2 instanceb. dismont and remove t(e vo)me

5amp)e:

u$ount /db_data_backups

vgchange vgbackup (a nvgexport vgbackup 

c. 7o&on in to t(e AWS 5C2 9ana&ement Conso)e

(ttps:,,conso)e.aws.amazon.com,ec2, d. Eo to Vo1umes and se)ect t(e vo)me to removee. C)ick on Detach Vo1ume". C)ick on es Detach on t(e popp window&. W(en detac(ed' c)ick on De1ete Vo1ume

1

Page 39: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 39/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

Appendi* 5+ Sybase AS7 Database Backup to a

1oca1 2i1e System

Sybase AS5 provides two dierent met(ods "or backp p databases. n)ine database backps wit( t(e \$89# $AABAS5M command2 5terna) backps w(i)e t(e database (as been Diesced' i.e. \writeM access to

t(e database (as been sspended.

 (e sections be)ow describe on)y option ' "or more in"ormation on eterna)backps review Sybase AS5 docmentation.

7nsurin- Recoverabi1ity of the Sybase AS7 database server

 o ensre recoverabi)ity o" t(e Sybase AS5 server yo need be ab)e to restore acrrent backp o" t(e master database' a crrent backp o" t(e Z$BS;$[ database

and t(e comp)ete seDence o" t(e transaction )o& arc(ives t(at (ave taken since

t(e )ast database backp.

<or production systems' yo mst arc(ive t(e transaction )o& o" t(e Z$BS;$[

database.

<o))owin& database options mst bet set "or t(e Z$BS;$[ database.

- _trnc )o& on c(kpt_' _"a)se_- _")) )o&&in& "or a))_' _tre_

- _en"orce dmp tran seDence_' _tre_

<or more in"ormation re"er to SA# Gote 334.

PreparationW(en dmpin& a database or a transaction )o& to a disk device it is important to not

overwrite eistin& dmps and to keep track o" t(e seDence. ;t is (i&()y

recommended to &enerate devices names t(at inc)de a timestamp. ;dea))y yo ca))

t(e \$89#M command "rom wit(in a stored procedre t(at &enerates a device +)e

name' w(ic( wi)) inc)de t(e crrent timestamp and database name. (en yo

sc(ed)e ca))s to t(ese stored procedres in Sybase AS5 ob Sc(ed)er. Additiona))y

we s&&est de+nin& a t(res(o)d t(at tri&&ers a dmp o" t(e transaction )o& w(ent(e )o& +))s. SA# note 31/ provides instrctions (ow to ac(ieve t(is.

• Create a stored procedre \s_dumd#M and \s_dumtransM to ca)) t(e dmp

command

SA# note 31/ provides temp)ates "or t(ese procedres. !ep)ace t(e pat(

as appropriate' se /db_log_backups as directory "or transaction )o& dmps.

8se /db_data_backups as directory "or database dmps.

14

Page 40: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 40/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

• Create t(e stored procedre \spQt(res(o)dactionM in t(e Z$BS;$[ database

see SA# note 31/

Automatin- Database and .ransaction ,o- DumpsSybase AS5 provides an inte&rated ob sc(ed)er' w(ic( yo may se to atomate

database and transaction )o& dmps. (e ob Sc(ed)er s(o)d be setp by de"a)t

in yo SA# system.

Create a ob and a sc(ed)e "or eac( database yo want to back p. pen t(e

 ransaction $BACCT#;' switc( to t(e tab \obsM \$BA #)annin& Ca)endarM.

Create a ob to eecte store procedre \spQdmpdbM "or t(e databases \masterMK 

\<D,%&D>M' Osatoo'sPK Osy#mgmtd#Pt(e )atter two are optiona). We recommend

to sc(ed)e t(ese obs at )east dai)y.

Create a ob to ca)) store procedre \spQdmptransM "or t(e Z$BS;$[ database. ;n

order to minimize t(e potentia) "or transaction )oss in t(e case o" a disk error' we

recommend t(at yo sc(ed)e t(is ob at )east (or)y in a prodction environment.

=0

Page 41: Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

8/18/2019 Backup and Recovery of SAP Systems on AWS v2-0 FINAL (3)

http://slidepdf.com/reader/full/backup-and-recovery-of-sap-systems-on-aws-v2-0-final-3 41/41

Backp and !ecovery o" SA# Systems on Amazon Web Services

Appendi* %+ Sybase AS7 Server Recovery

A comp)ete restore and recovery o" an Sybase AS5 server o" an SA# System consistso" t(ese tasks

!ecreation o" t(e AS5 So"tware ;nsta))ation "rom a +)e system copy.2 !ecreation o" t(e AS5 Server1 7oad o" t(e \masterM database= 7oad o" t(e \sybm&mtdbM database optiona)3 7oad o" t(e \saptoo)sM database optiona)/ 7oad o" t(e \Z$BS;$[ database 7oad o" t(e seDence o" transaction )o& dmps o" t(e \Z$BS;$[M database

$etai)ed instrctions can be "ond in SA# Gote Go. / 8G;J and SA# GoteGo. /3 Windows. We a)so re"er to Sybase AS5 docmentation in Sybase

;n"ocenter (ttp:,,in"ocenter.sybase.com,(e)p,inde.sp .

#artic)ar)y "or prodction systems ' it is stron&)y recommended t(at yo per"ormtest restores at re&)ar interva)s to va)idate yor restore process.