Top Banner
@toniblyx at #SummitNow Alfresco Backup and Recovery Tool: a real world backup solution November 2013 Toni de la Fuente – Alfresco Senior Solutions Engineer [email protected] blyx.com - @toniblyx
26

Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

May 17, 2015

Download

Technology

Presentation used in the Alfresco Summit 2014 (both Barcelona and Boston).
If you want to see the demo visit: https://www.youtube.com/watch?v=i0K2Y_6JH0A

White Paper and presentation video can be found here: http://summit.alfresco.com/boston/sessions/alfresco-backup-and-recovery-tool-real-world-backup-solution
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

Alfresco Backup and Recovery Tool: a real world backup solution

November 2013

Toni de la Fuente – Alfresco Senior Solutions [email protected]

blyx.com - @toniblyx

Page 2: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Who I am? @toniblyx• Alfresco Senior Solutions Engineer,

Americas• Working with Alfresco for 6 years• 3.5 years as part of the team• Former Consultant & Security Auditor:

ethical hacking, penetration tests.• And writing at blyx.com since 2002

Page 3: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Agenda

• Foundation Concepts• Alfresco Backup Overview• Backup and Restore Alfresco with

Alfresco BART

Page 4: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

White Paper

Status:• Draft• On review

Page 5: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Backup and Disaster Recovery• Backup, Archiving, Disaster

Recovery• Why?• Business impact• RPO and RTO

Page 6: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Backup and Disaster Recovery• Methods• Full, incremental, differential

• Techniques• Cold, warm, hot•Window, rotation, destination

Page 7: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Geo Disaster Recovery

•DR Primary

BackupDisaster Recovery preparedness:

• Daily content backups

• Backup servers on standby

(active/passive)

• Regular backup and restore testing

Page 8: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Backup Procedure and Methods• What?• Static• Dynami

c• Order

+ Inst

all

+ Conf

ig

+ Cust

om

• Cold• Warm• Hot

Page 9: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Alfresco Backup Overview• Components• Scheduled jobs• Other scheduled jobs to consider

Physical Storage

Relational Database File SystemLucene or SOLRInstallation,

Config and logs files

system.content.orphanCleanup.cronExpression=0 0 4 * * ?system.content.orphanProtectDays=14system.content.eagerOrphanCleanup=false

Page 10: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Restore Procedure - User• Trashcan

Page 11: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Restore Procedure – Sys Admin

1. Installation2. Configuration3. Customization4. DB5. Content Store6. Indexes

Page 12: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Disaster Recovery

•DR

Active - Active

Active -

Passive

Page 13: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Alfresco BART• Description• Features• Concepts• Installation

• Usage• Disaster Recovery• Demo• TODO

Page 14: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Alfresco BART - Description• Alfresco Backups and Recovery

Tool written in shell script on top of Duplicity (Linux servers).• Local file system, FTP, SCP or

Amazon S3.• Indexes, data base, content

store and deployment and configuration files. • v0.2 at

http://blyx.com/alfresco-bart

Page 15: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

mysqldump

Oracle imp/exp

pg_dump

Backup Policies

Indexes: Lucene /

Solr

Recovery commands & wizard

Full / Incremental

Backup

Major DBs Supported

S3, FTP, SCP, LocalCustom

Tape Volume Size

Single File Recovery

Geo Desaster Recovery Encryption

Bash + properties

Compress

GnuPG

librsync

NcFTP

Content Store

Selector Aware

Cluster Aware

Log Reporting

Alfresco BART - Features

Duplicity

PythonFabric Boto

Pip

Page 16: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Alfresco BART - Concepts• Full,

incremental• Backup sets• all• index (backup &

config)• db• Cs• files

• Dates• now, s, m, h, D,

W, M or Y• YYYY/MM/DD,

YYYY-MM-DD, MM/DD/YYYY, or MM-DD-YYYY

Page 17: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Alfresco BART - Installation• Dependences • python + duplicity + DB dump/export

• Create PGP key• Copy files to Alfresco “scripts” dir• Configure • alfresco-bart.properties

• Add to crontab*• "0 5 * * * /path/to/alfresco-bart.sh

backup"

Page 18: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Alfresco BART - UsageModes of work:• Backup: runs an incremental backup or a

full if first time• Restore: runs the restore, wizard if no

arguments• Verify: verifies the latest backup with

current files• Collection: shows all the backup sets in

the archive sorted by date and type (full or inc)

• List: lists the files currently backed up in the archive

Page 19: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Alfresco BART – Disaster Recovery

Procedure1. *Backup destination must be remote2. Install and configure Alfresco BART as

the source.3. Copy the directory ~/.gnupg from de

original server to the new one (if gpg encryption is used).

4. Run the recovery wizard or command as usual.

5. Enjoy restoring your disaster recovery environment.

Page 20: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Demo – Let’s Rock & Roll \m/

Page 21: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

Alfresco BART - TODO• Documentation• Validators• Postgresql and Oracle single

repo file recovery• Admin panel configuration• Suggestions?

Page 22: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

#SummitNow

FAQ• Windows Support?• Really large repositories?• Alfresco versions supported

Page 23: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

#SummitNow

Any questions?

Page 24: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

@toniblyx at #SummitNow

ConclusionsBackup thing my not be the most amazing task but… it

always could be worse!!

Page 25: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow

if [ $you = applause ];

then

echo “THANKS!”;

fi

Toni de la FuenteAlfresco Senior Solutions EngineerBlog: blyx.com Twitter: @ToniBlyx

Page 26: Alfresco Backup and Recovery Tool: a real world backup solution for Alfresco

@toniblyx at #SummitNow