Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

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

11 181 vues

Publié le

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

Publié dans : Technologie
  • Soyez le premier à commenter

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

  1. 1. Alfresco Backup and Recovery Tool: a real world backup solution November 2013 Toni de la Fuente – Alfresco Senior Solutions Engineer toni.delafuente@alfresco.com blyx.com - @toniblyx @toniblyx at #SummitNow
  2. 2. 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 @toniblyx at #SummitNow @toniblyx at #SummitNow
  3. 3. Agenda • Foundation Concepts • Alfresco Backup Overview • Backup and Restore Alfresco with Alfresco BART @toniblyx at #SummitNow @toniblyx at #SummitNow
  4. 4. White Paper Status: • Draft • On review @toniblyx at #SummitNow @toniblyx at #SummitNow
  5. 5. Backup and Disaster Recovery • • • • Backup, Archiving, Disaster Recovery Why? Business impact RPO and RTO @toniblyx at #SummitNow @toniblyx at #SummitNow
  6. 6. Backup and Disaster Recovery • Methods • Full, incremental, differential • Techniques • Cold, warm, hot • Window, rotation, destination @toniblyx at #SummitNow @toniblyx at #SummitNow
  7. 7. Geo Disaster Recovery • DR Primary Disaster Recovery preparedness: Backup • Daily content backups • Backup servers on standby (active/passive) • Regular backup and restore testing @toniblyx at #SummitNow @toniblyx at #SummitNow
  8. 8. Backup Procedure and Methods • • • • What? Static Dynamic Order • Cold • Warm • Hot @toniblyx at #SummitNow @toniblyx at #SummitNow
  9. 9. Alfresco Backup Overview • Components • Scheduled jobs • Other scheduled jobs to consider system.content.orphanCleanup.cronExpression=0 0 4 * * ? system.content.orphanProtectDays=14 Physical system.content.eagerOrphanCleanup=false Storage Lucene or SOLR Relational Database File System Installation, Config and logs files @toniblyx at #SummitNow @toniblyx at #SummitNow
  10. 10. Restore Procedure - User • Trashcan @toniblyx at #SummitNow @toniblyx at #SummitNow
  11. 11. Restore Procedure – Sys Admin 1. 2. 3. 4. 5. 6. Installation Configuration Customization DB Content Store Indexes @toniblyx at #SummitNow @toniblyx at #SummitNow
  12. 12. Disaster Recovery • DR Active - Active Active - Passive @toniblyx at #SummitNow @toniblyx at #SummitNow
  13. 13. Alfresco BART • Description • Features • Concepts • Installation • Usage • Disaster Recovery • Demo • TODO @toniblyx at #SummitNow @toniblyx at #SummitNow
  14. 14. 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. @toniblyx at #SummitNow @toniblyx at #SummitNow • v0.2 at http://blyx.com/alfresco-bart
  15. 15. Alfresco BART - Features Bash + properties Recovery commands & wizard Backup Policies pg_dump mysqldump Indexes: Lucene / Solr Duplicity Oracle imp/exp librsync Log Reporting S3, FTP, SCP, Local Custom Tape Volume Size Pip Single File Recovery Cluster Aware Boto Fabric NcFTP Major DBs Supported Content Store Selector Aware Python GnuPG Full / Incremental Backup Geo Desaster Recovery Compress Encryption @toniblyx at #SummitNow @toniblyx at #SummitNow
  16. 16. 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 @toniblyx at #SummitNow @toniblyx at #SummitNow
  17. 17. 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* @toniblyx at #SummitNow @toniblyx at #SummitNow • "0 5 * * * /path/to/alfresco-bart.sh backup"
  18. 18. Alfresco BART - Usage Modes 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 @toniblyx at #SummitNow @toniblyx at #SummitNow
  19. 19. Alfresco BART – Disaster Recovery Procedure 1. *Backup destination must be remote 2. 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 #SummitNow @toniblyx at at #SummitNow @toniblyx environment.
  20. 20. Demo – Let’s Rock & Roll m/ @toniblyx at #SummitNow @toniblyx at #SummitNow
  21. 21. Alfresco BART - TODO • Documentation • Validators • Postgresql and Oracle single repo file recovery • Admin panel configuration • Suggestions? @toniblyx at #SummitNow @toniblyx at #SummitNow
  22. 22. FAQ • Windows Support? • Really large repositories? • Alfresco versions supported @toniblyx at #SummitNow #SummitNow
  23. 23. Any questions? @toniblyx at #SummitNow #SummitNow
  24. 24. Conclusions Backup thing my not be the most amazing task but… it always could be worse!! @toniblyx at #SummitNow @toniblyx at #SummitNow
  25. 25. if [ $you = applause ]; then echo “THANKS!”; fi Toni de la Fuente Alfresco Senior Solutions Engineer Blog: blyx.com Twitter: @ToniBlyx @toniblyx at #SummitNow
  26. 26. @toniblyx at #SummitNow