The simpler the backup, the higher is the chance that the backups will be done by users. So let’s look for simple backup methods.
Two known command-line backup tools of this kind are rdiff-backup and rsnapshot. Both tools allow easy-to-setup backups, and impress with a direct file-level access to the last backup copy.
Although the two tools share the same main idea – “incremental forever backups” – they differ in how they reach this goal. While rdiff-backup stores old versions of a file by only saving the changes (increments) compared to the following version, rsnapshot creates a new backup file whenever a file has changed since the last backup. This fact leads to different advantages and disadvantages: while rdiff-backup is very space-efficient, a restore of an older version of a file might take longer. Rsnapshot on the other hand allows fast restores even for older versions, but as a downside it needs more backup space to store the same amount of data.
So which tool should I use? rdiff-backup or rsnapshot? Well, it depends…
In this talk we will explain how rdiff-backup and rsnapshot work in detail, and show different use-cases. Along with that knowledge, you will find the right answer for you which tool to choose.
Logical Volume Management ("LVM") on linux looks like a complicated mess at first. The basics are not all that hard, and some features like mirroring, dynamic space management, snapshots for stable backups, mirroring, and over-provisioning via thin volumes can save a lot of time and effort.
The perl on most linux distros is a mess. Docker makes it easier to build and packge a local perl and applications. Problem is that Docker's manuals produce a mess of their own.
Distributing perl on top of Gentoo's stage3 distro, busybox, or nothing at all made good alternatives. This talk includes basics of setting up docker, building a local perl for it, and packaging perl or applications into images for use in containers.
Slides from a talk at HPC Admintech 2019 about containers, a brief review on containers, how to create a container using common linux tools and how to integrate Docker with Slurm.
Logical Volume Management ("LVM") on linux looks like a complicated mess at first. The basics are not all that hard, and some features like mirroring, dynamic space management, snapshots for stable backups, mirroring, and over-provisioning via thin volumes can save a lot of time and effort.
The perl on most linux distros is a mess. Docker makes it easier to build and packge a local perl and applications. Problem is that Docker's manuals produce a mess of their own.
Distributing perl on top of Gentoo's stage3 distro, busybox, or nothing at all made good alternatives. This talk includes basics of setting up docker, building a local perl for it, and packaging perl or applications into images for use in containers.
Slides from a talk at HPC Admintech 2019 about containers, a brief review on containers, how to create a container using common linux tools and how to integrate Docker with Slurm.
Red Hat Certified Engineer (RHCE) EX294 Exam QuestionsStudy Material
Do you want to succeed in attaining Red Hat Certified Engineer (RHCE) in one shot? Dumpspedia can do that for you. It’s no joke! We have fantastic set of several RedHat Practice Test Questions Answers to choose from. All of them extracted directly from Red Hat Certified Engineer (RHCE) exam for Red Hat Enterprise Linux 8 Test Questions. EX294 Test Questions are verified and authentic with possibilities highest as they come to be on your actual exam. We put your satisfaction on top while making a perfect collection of valid EX294 Practice Questions. Join us on our website to have a better insight.
https://www.dumpspedia.com/EX294-dumps-questions.html
I’ve been keeping a collection of Linux commands that are particularly useful; some are from websites I’ve visited, others from experience
I hope you find these are useful as I have. I’ll periodically add to the list, so check back occasionally.
OSBConf 2015 | Backup vmware snapshots with bareos by philipp storz & ste...NETWAYS
The new Python based Bareos VMware-plugin creates snapshots of VMware virtual machines and makes full as well as incremental backups of these snapshots. This plugin complements the traditional file based backups with a complete VM backup approach as desaster recovery solution
OSBConf 2015 | Contemporary and cost efficient backups to to tape by josef we...NETWAYS
Recently IBM demonstrated a 220 TB Tape Cartridge. I will show the future of Tape Technology and the enhancement made in Tape Storage. Also I give an outlook in Hard-Disk and in Flash Technology. The roadmap in areal density and capacity growth in those different technology will force us to rethink our backup storage architecture in the future. I will discuss and compare those different storage technologies areal density, roadmap, bit error rate, cost and power consumption. I will calculate some example related to backup environment where not only huge data are stored but also many data processed daily.
Red Hat Certified Engineer (RHCE) EX294 Exam QuestionsStudy Material
Do you want to succeed in attaining Red Hat Certified Engineer (RHCE) in one shot? Dumpspedia can do that for you. It’s no joke! We have fantastic set of several RedHat Practice Test Questions Answers to choose from. All of them extracted directly from Red Hat Certified Engineer (RHCE) exam for Red Hat Enterprise Linux 8 Test Questions. EX294 Test Questions are verified and authentic with possibilities highest as they come to be on your actual exam. We put your satisfaction on top while making a perfect collection of valid EX294 Practice Questions. Join us on our website to have a better insight.
https://www.dumpspedia.com/EX294-dumps-questions.html
I’ve been keeping a collection of Linux commands that are particularly useful; some are from websites I’ve visited, others from experience
I hope you find these are useful as I have. I’ll periodically add to the list, so check back occasionally.
OSBConf 2015 | Backup vmware snapshots with bareos by philipp storz & ste...NETWAYS
The new Python based Bareos VMware-plugin creates snapshots of VMware virtual machines and makes full as well as incremental backups of these snapshots. This plugin complements the traditional file based backups with a complete VM backup approach as desaster recovery solution
OSBConf 2015 | Contemporary and cost efficient backups to to tape by josef we...NETWAYS
Recently IBM demonstrated a 220 TB Tape Cartridge. I will show the future of Tape Technology and the enhancement made in Tape Storage. Also I give an outlook in Hard-Disk and in Flash Technology. The roadmap in areal density and capacity growth in those different technology will force us to rethink our backup storage architecture in the future. I will discuss and compare those different storage technologies areal density, roadmap, bit error rate, cost and power consumption. I will calculate some example related to backup environment where not only huge data are stored but also many data processed daily.
OSDC 2015: James Fryman | DevOps Next Steps: Event Driven OperationNETWAYS
The most critical component of building out successful DevOps culture is creating a successful merger of sustainable technology and process. ChatOps practices help teams accelerate delivery by bringing in technology operations inline with conversations already happening today. This in turn helps turns operations into simple events than can be chained together to make teams even more powerful and flexible than ever before! This talk discusses the practical implementations of ChatOps and how it can be used to grow teams of all types and sizes.
OSDC 2015: Martin Gerhard Loschwitz - Kristian Köhntopp | 45 Minutes of OpenS...NETWAYS
OpenStack has been dominating the news on Open Source cloud computing for more than two years now - and there is no end in sight for the hype. If you have been looking into cloud computing, you will most likely have considered OpenStack as a possible solution. You will also have heard success stories of large organizations such as Rackspace or CERN. And of course people told you about all the glittering parties held during the semi-annual OpenStack summits.
What you probably haven't heard that often are stories about all the occasions where OpenStack will blow up right in your face. At SysEleven, we've been working on an OpenStack platform for more than a year now - and we would like to share our experiences with you in this presentation. We'll explain why we have decided to go with OpenStack in the first place, what problems we have ran into and how we solved them. We'll demonstrate what our platform looks like at the moment and what challenges we are currently working on. At the end, you will have a better understanding of what OpenStack means for ISPs and what kind of trouble you are signing up for when becoming an OpenStacker.
OSMC 2014: Processing millions of logs with Logstash and integrating with Ela...NETWAYS
This presentation is meant to be an introduction in the world of log monitoring using Logstash and also a showcase for using Logstash in big data setups.
You will be guided in using Logstash from scratch and end up with a complete and centralized setup that should cover all your logging needs.
The presentation covers multiple software solutions like Logstash, Kibana, Elasticsearch, HDFS, Cassandra, HBase and KairosDB.
OSMC 2015: Collectd Thresholds Plugin and Icinga by Florian ForsterNETWAYS
Capacity planning and monitoring both use system and application performance data. Using the data sampled by collectd at a high frequency allows system engineers to define alerts with short windows while reducing overall system load.
This talk will give a brief introduction to collectd and its "threshold" plugin, including the concepts and configuration involved. It will then explore the different possibilities to combine collectd with Icinga / Nagios and discuss pro and contra of each approach.
OSBConf 2015 | Using aws virtual tape library as storage for bacula bareos by...NETWAYS
How to set up the Amazon Web Services Virtual Tape Library Storage Gateway on-premises to cache and buffer Bacula backups to S3 and Glacier.
The VTL service behaves like a tape library connected via iSCSI, and we can set up a Bacula Storage Daemon to write our backups seamlessly to S3 backed virtual tapes.
(from the article at CAPSiDE Labs:)
http://capside.com/labs/using-aws-virtual-tape-library-vtl-storage-bacula-amazon-web-services-howto/
OSBConf 2015 | Live demonstration of tying together git, slat and bareos bacu...NETWAYS
You don’t want to do backups, you want to do a successful restore!
And to get these possibility as fast as you can you have to automate, standardise your installation and configuration of Bareos. A lesser side effect, all your work is self documented you have a history and it is rollbackable.
To get all these together we use git, salt and Bareos.
This live demonstration will
– give you a short introduction to salt and its requirements
– tell you how to get and manage the Bareos Salt-State of and with git
– show a way managing customers Bareos configuration with git for Salt
– introduce what is a Salt Pillar and why there are the core information’s
– end up in an automated installation of Bareos DIR, SD and FD including a few jobs.
OSMC 2015: Monitoring Linux and Windows Logs with the Graylog Collector byBer...NETWAYS
Until recently, sending logs to Graylog without using Syslog or any third party program was a bit cumbersome. This has changed since version 1.1. Graylog now has its own log collector which is tightly integrated with the Graylog server and web interface to simplify the management of log shippers.
The Graylog collector runs on several operating systems including Linux, Windows, Mac OS and AIX. It makes it easy to send data like Apache access logs or Windows event logs to Graylog without the need of any third party tools.
In this talk I will introduce the Graylog collector and show how to install and configure it on Linux and Windows. I will also show how to extract structured data from those logs and an example integration with the Icinga monitoring system to alert on critical events.
OSMC 2015: Zabbix 3.0. The Simple, the Powerful and the Shiny by Wolfgang AlperNETWAYS
With its first release in 2001, over the last 14+ years Zabbix became a solid and mature enterprise grade open source GPL network monitoring solution which is maintained and packaged for most linux distributions. Having a release cicles for regular product releases and LTS (Long-Term-Support) versions, this presentation gives a glance on the new features to be expected in zabbix 3.0 which will be the next official LTS release.
OpenNebula Conf 2014 | Practical experiences with OpenNebula for cloudifying ...NETWAYS
Our team manages a SaaS platform for Business Intelligence and Analytics applications using a diverse set of middleware (mostly IBM). However the original setup of this platform was not done using a cloud architecture. In this talk we describe the reasons for selecting OpenNebula. The architecture of the new setup. The process of migrating to that new setup and the lessons we learned during that process and in the daily operation of the platform. And finally this talk will also cover our vision for the next step which is to move towards a hybrid cloud setup.
Icinga 2: Einrichten von Notifications (Webinar vom 21. Januar 2016) NETWAYS
Icinga 2 bietet ein sehr dynamisches Konfigurations-Backend zum verwalten von Hosts und Services. Diese Logik kann natürlich auch auf die Alarmierung angewendet werden. In diesem Webinar wollen wir auf die Möglichkeiten der E-Mail und SMS-Alarmierung eingehen.
Webinare
Archiv Link: https://www.netways.de/webinare/archiv/icinga_webinare/icinga_2_einrichten_von_notifications/
Aktuell: https://www.netways.de/webinare/webinare_aktuell/
NETWAYS
Konferenzen: https://www.netways.de/events_schulungen/home/
Schulungen: https://www.netways.de/events_schulungen/schulungen/home/
Shop: https://shop.netways.de/
Blog: http://blog.netways.de/
Social Media
YouTube: https://www.youtube.com/channel/UC8nIBEFmjzXjXeJV_hkkeIQ
Facebook: https://www.facebook.com/netways
Google+: https://plus.google.com/+netways/
Twitter: https://twitter.com/netways
OSDC 2015: John Spray | The Ceph Storage SystemNETWAYS
Ceph is an open source distributed object store and file system that provides excellent performance, reliability and scalability.
In this presentation, the Ceph architecture will be explained, attendees will be introduced to the block, object and file interfaces to Ceph.
OSDC 2015: Bernd Erk | Why favour Icinga over NagiosNETWAYS
Most sys admins have a love-hate relationship with Nagios based monitoring solutions. Backed by a sizable community, users have learned to live with it’s shortcomings in scaling, configuration, and modern integration options.
Taking advantage of the tremendous number of supported hard- and software, Icinga leaves all legacy limitations behind. It delivers an easily scalable solution, with clustering, load balancing, automated replication, and even business process monitoring out-of-the-box. Based on a new configuration format with advanced language features - like conditional processing and complex type support - monitoring agile environments works like a breeze. Existing modules for Puppet, Chef and Ansible ramp up the rollout time and ensure a continuous and up to date monitoring environment.
The talk will demonstrate how popular tools such as Graphite, Logstash, or Graylog integrate better and easier than ever before. In addition to that we’ll introduce the new Icinga Web 2 interface and give a brief introduction into the technical architecture.
Using filesystem capabilities with rsyncHazel Smith
As presented at the FLOSS UK Unconference 2015.
Updated 2015-02-08: added details of caveats, primarily the fact that CAP_DAC_READ_SEARCH does exactly what it says on the tin, and covering precautions like ensuring that password authentication is *never* allowed for the backuphelper user.
Lock, Stock and Backup: Data GuaranteedJervin Real
Percona Live 2017 - the decisions you need to make, the tools we recommend, the process you need to consider for a successful backup implementation for your MySQL services.
Joshua D. Drake
Are you tired of not having a real solution for PITR? Enter PITRTools, a single and secure solution for using Point In Time Recovery for PostgreSQL.
OpenStack Tokyo Meeup - Gluster Storage DayDan Radez
November 2012 Tokyo OpenStack meetup was dedicated to using Gluster storage. This presentation showed the fuse mount method to integrating gluster into OpenStack. There are new drivers that have been developed that make mounting gluster volumes to instances more efficient. This presentation doesn't show how to use them.
Open Source Backup Conference 2014: Workshop bareos introduction, by Philipp ...NETWAYS
It gives an introduction to the architecture of Bareos, and how the components of Bareos interact. The configuration of Bareos will be discussed and the main Bareos features will be shown. As a practical part of the workshop the adaption of the preconfigured standard backup scheme to the attendees’ wishes will be developed.
Attendees are kindly asked to contribute configuration tasks that they want to have solved.
Open Source Backup Conference 2014: Rear, by Ralf DannertNETWAYS
ReaR(Relax and Recover) is delivered as part of the SUSE Linux High Availability Extension.
We show -by way of example- how corporations integrate ReaR during Preparation, Testing and Recovery as buildingblock of their disaster recovery strategy.In the technical part we will highlight the AutoYaST/YaST integration with rear-suse.
We will also investigate some of the adaptations, that had to be done to make ReaR work with upcoming SLES12, that will include systemd and grub2 to be able to automatically recover btrfs subvolumes.
Linux Server Deep Dives (DrupalCon Amsterdam)Amin Astaneh
Over the past few years the Linux kernel has gained features that allow us to learn more about what's really happening on our servers and the applications that run on them.
This talk will explore how these new features, particularly perf_events and ebpf, enable us to answer questions about what a Drupal site is doing in real time beyond what the standard logs, server performance tools, and even strace will reveal. Attendees will be provided a brief introduction to example uses of these tools to diagnose performance problems.
This talk is intended for attendees that are familiar with Linux, the command line, and have used host observability tools in the past (top, netstat, etc).
Caching and tuning fun for high scalabilityWim Godden
Caching has been a 'hot' topic for a few years. But caching takes more than merely taking data and putting it in a cache : the right caching techniques can improve performance and reduce load significantly. But we'll also look at some major pitfalls, showing that caching the wrong way can bring down your site. If you're looking for a clear explanation about various caching techniques and tools like Memcached, Nginx and Varnish, as well as ways to deploy them in an efficient way, this talk is for you.
A Comprehensive Look at Generative AI in Retail App Testing.pdfkalichargn70th171
Traditional software testing methods are being challenged in retail, where customer expectations and technological advancements continually shape the landscape. Enter generative AI—a transformative subset of artificial intelligence technologies poised to revolutionize software testing.
Code reviews are vital for ensuring good code quality. They serve as one of our last lines of defense against bugs and subpar code reaching production.
Yet, they often turn into annoying tasks riddled with frustration, hostility, unclear feedback and lack of standards. How can we improve this crucial process?
In this session we will cover:
- The Art of Effective Code Reviews
- Streamlining the Review Process
- Elevating Reviews with Automated Tools
By the end of this presentation, you'll have the knowledge on how to organize and improve your code review proces
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisGlobus
JASMIN is the UK’s high-performance data analysis platform for environmental science, operated by STFC on behalf of the UK Natural Environment Research Council (NERC). In addition to its role in hosting the CEDA Archive (NERC’s long-term repository for climate, atmospheric science & Earth observation data in the UK), JASMIN provides a collaborative platform to a community of around 2,000 scientists in the UK and beyond, providing nearly 400 environmental science projects with working space, compute resources and tools to facilitate their work. High-performance data transfer into and out of JASMIN has always been a key feature, with many scientists bringing model outputs from supercomputers elsewhere in the UK, to analyse against observational or other model data in the CEDA Archive. A growing number of JASMIN users are now realising the benefits of using the Globus service to provide reliable and efficient data movement and other tasks in this and other contexts. Further use cases involve long-distance (intercontinental) transfers to and from JASMIN, and collecting results from a mobile atmospheric radar system, pushing data to JASMIN via a lightweight Globus deployment. We provide details of how Globus fits into our current infrastructure, our experience of the recent migration to GCSv5.4, and of our interest in developing use of the wider ecosystem of Globus services for the benefit of our user community.
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTier1 app
Even though at surface level ‘java.lang.OutOfMemoryError’ appears as one single error; underlyingly there are 9 types of OutOfMemoryError. Each type of OutOfMemoryError has different causes, diagnosis approaches and solutions. This session equips you with the knowledge, tools, and techniques needed to troubleshoot and conquer OutOfMemoryError in all its forms, ensuring smoother, more efficient Java applications.
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Anthony Dahanne
Les Buildpacks existent depuis plus de 10 ans ! D’abord, ils étaient utilisés pour détecter et construire une application avant de la déployer sur certains PaaS. Ensuite, nous avons pu créer des images Docker (OCI) avec leur dernière génération, les Cloud Native Buildpacks (CNCF en incubation). Sont-ils une bonne alternative au Dockerfile ? Que sont les buildpacks Paketo ? Quelles communautés les soutiennent et comment ?
Venez le découvrir lors de cette session ignite
Designing for Privacy in Amazon Web ServicesKrzysztofKkol1
Data privacy is one of the most critical issues that businesses face. This presentation shares insights on the principles and best practices for ensuring the resilience and security of your workload.
Drawing on a real-life project from the HR industry, the various challenges will be demonstrated: data protection, self-healing, business continuity, security, and transparency of data processing. This systematized approach allowed to create a secure AWS cloud infrastructure that not only met strict compliance rules but also exceeded the client's expectations.
Accelerate Enterprise Software Engineering with PlatformlessWSO2
Key takeaways:
Challenges of building platforms and the benefits of platformless.
Key principles of platformless, including API-first, cloud-native middleware, platform engineering, and developer experience.
How Choreo enables the platformless experience.
How key concepts like application architecture, domain-driven design, zero trust, and cell-based architecture are inherently a part of Choreo.
Demo of an end-to-end app built and deployed on Choreo.
Listen to the keynote address and hear about the latest developments from Rachana Ananthakrishnan and Ian Foster who review the updates to the Globus Platform and Service, and the relevance of Globus to the scientific community as an automation platform to accelerate scientific discovery.
Modern design is crucial in today's digital environment, and this is especially true for SharePoint intranets. The design of these digital hubs is critical to user engagement and productivity enhancement. They are the cornerstone of internal collaboration and interaction within enterprises.
Developing Distributed High-performance Computing Capabilities of an Open Sci...Globus
COVID-19 had an unprecedented impact on scientific collaboration. The pandemic and its broad response from the scientific community has forged new relationships among public health practitioners, mathematical modelers, and scientific computing specialists, while revealing critical gaps in exploiting advanced computing systems to support urgent decision making. Informed by our team’s work in applying high-performance computing in support of public health decision makers during the COVID-19 pandemic, we present how Globus technologies are enabling the development of an open science platform for robust epidemic analysis, with the goal of collaborative, secure, distributed, on-demand, and fast time-to-solution analyses to support public health.
How Recreation Management Software Can Streamline Your Operations.pptxwottaspaceseo
Recreation management software streamlines operations by automating key tasks such as scheduling, registration, and payment processing, reducing manual workload and errors. It provides centralized management of facilities, classes, and events, ensuring efficient resource allocation and facility usage. The software offers user-friendly online portals for easy access to bookings and program information, enhancing customer experience. Real-time reporting and data analytics deliver insights into attendance and preferences, aiding in strategic decision-making. Additionally, effective communication tools keep participants and staff informed with timely updates. Overall, recreation management software enhances efficiency, improves service delivery, and boosts customer satisfaction.
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Globus
Large Language Models (LLMs) are currently the center of attention in the tech world, particularly for their potential to advance research. In this presentation, we'll explore a straightforward and effective method for quickly initiating inference runs on supercomputers using the vLLM tool with Globus Compute, specifically on the Polaris system at ALCF. We'll begin by briefly discussing the popularity and applications of LLMs in various fields. Following this, we will introduce the vLLM tool, and explain how it integrates with Globus Compute to efficiently manage LLM operations on Polaris. Attendees will learn the practical aspects of setting up and remotely triggering LLMs from local machines, focusing on ease of use and efficiency. This talk is ideal for researchers and practitioners looking to leverage the power of LLMs in their work, offering a clear guide to harnessing supercomputing resources for quick and effective LLM inference.
Software Engineering, Software Consulting, Tech Lead.
Spring Boot, Spring Cloud, Spring Core, Spring JDBC, Spring Security,
Spring Transaction, Spring MVC,
Log4j, REST/SOAP WEB-SERVICES.
We describe the deployment and use of Globus Compute for remote computation. This content is aimed at researchers who wish to compute on remote resources using a unified programming interface, as well as system administrators who will deploy and operate Globus Compute services on their research computing infrastructure.
How to Position Your Globus Data Portal for Success Ten Good PracticesGlobus
Science gateways allow science and engineering communities to access shared data, software, computing services, and instruments. Science gateways have gained a lot of traction in the last twenty years, as evidenced by projects such as the Science Gateways Community Institute (SGCI) and the Center of Excellence on Science Gateways (SGX3) in the US, The Australian Research Data Commons (ARDC) and its platforms in Australia, and the projects around Virtual Research Environments in Europe. A few mature frameworks have evolved with their different strengths and foci and have been taken up by a larger community such as the Globus Data Portal, Hubzero, Tapis, and Galaxy. However, even when gateways are built on successful frameworks, they continue to face the challenges of ongoing maintenance costs and how to meet the ever-expanding needs of the community they serve with enhanced features. It is not uncommon that gateways with compelling use cases are nonetheless unable to get past the prototype phase and become a full production service, or if they do, they don't survive more than a couple of years. While there is no guaranteed pathway to success, it seems likely that for any gateway there is a need for a strong community and/or solid funding streams to create and sustain its success. With over twenty years of examples to draw from, this presentation goes into detail for ten factors common to successful and enduring gateways that effectively serve as best practices for any new or developing gateway.
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...Juraj Vysvader
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I didn't get rich from it but it did have 63K downloads (powered possible tens of thousands of websites).
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
OSBConf 2015 | Backups with rdiff backup and rsnapshot by christoph mitasch & thomas niedermeier
1. Backup with rdiff-backup
and rsnapshot
Christoph Mitasch & Thomas Niedermeier, Thomas-Krenn.AG
@Cmitasch, @tk_tniedermeier
Open Source Backup Conference 2015
September 29th
-30th
2015, Cologne, Germany
8. 8
Basics
_ A filesystem snapshot utility
_ GNU General Public Licence
_ Based on rsync
_ Using hard links for increments
_ Written in perl / no module dependencies
_ Local and remote via rsync over ssh
_ Triggered by cron or anacron
9. 9
Benefits
_ Minimal disk space required
_ Hourly, daily, weekly and monthly snapshots
_ Direct access to every snapshot
_ Easy to use
_ Tested working on a lot of distributions
17. 17
Pull backup best practice
_ Own backup user
_ e.g. rsnap
_ Not root!
_ Public key logins without password
_ MySQL Backups
_ backup_script /usr/bin/ssh -i /home/rsnap/.ssh/id_rsa
rsnap@<IP_Address> 'mysqldump --all-databases | gzip --rsyncable
> ~/alldb.sql.gz' unused1/
_ Placed above the backup entries of this server
_ backup_script will be executed and the zipped file will be backuped
with the backup /home/ command
19. 19
Hard link example 1/2
ls -li hourly.0/localhost/etc/hosts
ls -li hourly.1/localhost/etc/hosts
28147 -rw-r--r-- 2 root root /
186 Jul 10 2014 /
hourly.0/localhost/etc/hosts
ls -li hourly.1/localhost/etc/hosts
20. 20
Hard link example 2/2
_ # ls
_ hourly.0 hourly.1
_ # ls -li hourly.*/localhost/etc/hosts
_ 28147 -rw-r--r-- 2 root root 186 Jul 10 2015
hourly.0/localhost/etc/hosts
_ 28147 -rw-r--r-- 2 root root 186 Jul 10 2015
hourly.1/localhost/etc/hosts
_ # du -sh hourly.*
_ 47M hourly.0
_ 908K hourly.1
29. 29
start
rsnapshot
create
lockfile
remove
oldest
hourly
increment
remaining
hourlys by 1
cp -al
of hourly.0 to
hourly.1
run rsync
on hourly.0
set new
timestamp
on hourly.0
delete
lockfile
add info
to logfile
mv /var/cache/rsnapshot/hourly.4/ /var/cache/rsnapshot/hourly.5/
mv /var/cache/rsnapshot/hourly.3/ /var/cache/rsnapshot/hourly.4/
mv /var/cache/rsnapshot/hourly.2/ /var/cache/rsnapshot/hourly.3/
mv /var/cache/rsnapshot/hourly.1/ /var/cache/rsnapshot/hourly.2/
35. 35
Limitations and hints
_ rsnapshot.conf: elements separated by tabs
_ Trailing slash on the end of directory entries
_ Rsnapshot directory: chmod 700 & owned by
root (if rsnapshot is run by root)
_ By default only pull backups
→ http://linux.die.net/man/1/rsnapshot
– A lot more hints in the notes section
36. 36
Push backups really not possible?
_ rsnapshot server
_ Attach a rsync daemon (with a configuration) to the public SSH Key in authorized_keys
_ Configuration of the rsync daemon sets the backup directory
_ Via post-xfer exec a script containing rsnapshot will be executed
_ If more server should be managed, use a configuration independent of the
/etc/rsnapshot.conf for the backup scheme
_ How it's executed by the client
_ The backup client synchronizes via rsync and SSH the data to the backup server
_ Via authorized_keys the rsync daemon and the post-exec script will be triggered → a
snapshot will be created
_ Disadvantage
_ Neccesity intermediate step through rsync
_ Data is stored double, not very space efficient
37. 37
Restore?
_ scp
_ Copy via scp the favored folders or single files from the server
_ rsync -avr
_ Sync the folder back to your machine
_ sshfs
_ Mount the folder from the rsnapshot server via ssh
40. 40
rdiff-backup
A remote incremental backup
of all your files could be as easy as
"rdiff-backup / host.net::/target-dir"
source: http://www.nongnu.org/rdiff-backup/
42. 42
rdiff-backup Basics
_ written in Python, a little C
_ based on librsync
_ version 0.1 released 07/2001
_ latest version 1.2.8 released 03/2009
_ well tested on UNIX
for MacOS: extended attributes and ACLs
_ Debian/Ubuntu: apt-get install rdiff-backup
_ CentOS/RHEL: 1.2.8 in EPEL 6 & 7
_ SUSE: SLES 11 SP3/4, SLES12, openSUSE
43. 43
backup examples
_ local → local
rdiff-backup /dir1 /backupdir
_ local → remote (via SSH)
rdiff-backup /local-dir hostname.net::/remote-dir
_ remote → local
rdiff-backup hostname.net::/remote-dir /local-dir
_ remote → remote
rdiff-backup sourcehost.net::/source-dir
desthost.net::/dest-dir
45. 45
maintenance examples 1/2
_ list increments
_ remove increments older than 2 months
rdiff-backup --remove-older-than 2M host.net::/remote-dir
_ keep only last 30 backup sessions
rdiff-backup --remove-older-than 30B host.net::/remote-dir
_ exclude / include
rdiff-backup --exclude /tmp --exclude /proc --exclude /sys
/ host.net::/remote-dir
wiki# rdiff-backup -l .
Found 35 increments:
...
increments.2015-09-17T03:20:00+02:00.dir Thu Sep 17 03:20:00 2015
increments.2015-09-18T03:19:38+02:00.dir Fri Sep 18 03:19:38 2015
increments.2015-09-19T03:38:32+02:00.dir Sat Sep 19 03:38:32 2015
increments.2015-09-20T03:08:53+02:00.dir Sun Sep 20 03:08:53 2015
increments.2015-09-21T03:16:06+02:00.dir Mon Sep 21 03:16:06 2015
Current mirror: Tue Sep 22 03:18:57 2015
46. 46
maintenance examples 2/2
_ list changed files
_ when rdiff-backup gets interrupted (killed, network, …)
_ normally next run automatically fixes that
Previous backup seems to have failed, regressing
destination now.
Regressing to Tue Sep 22 12:26:17 2015
_ if that does not work
_ restore from backup's backup ;-)
_ try http://www.timedicer.co.uk/programs/help/rdiff-backup-regress.sh.php
wiki# rdiff-backup --list-changed-since 5D .
changed backupmysql/wiki.sql
...
changed www/de/wikiDE/images/thumb/1/15/Foto_Werner_Fischer.jpg
new www/de/wikiDE/images/thumb/1/15/Foto_Werner_Fischer.jpg/100px-Foto_Werner_Fischer.jpg
new www/de/wikiDE/images/thumb/1/15/Foto_Werner_Fischer.jpg/150px-Foto_Werner_Fischer.jpg
new www/de/wikiDE/images/thumb/1/15/Foto_Werner_Fischer.jpg/200px-Foto_Werner_Fischer.jpg
...
50. 50
Do's and Dont's
_ separate backup repos for
different time frames
(e.g. daily, weekly, yearly...)
_ exclude files that change
often and/or are not essential
_ .deb, .rpm, /var/lib/php5/, …
_ use uncompressed files (e.g.
MySQL-Dump) for efficient diff
or use "gzip --rsyncable"
_ use timestamps for logfiles
_ e.g. dateext for logrotate
_ monitor data growth rate
_ backup compressed or
encrypted files
(no useful rdiff)
_ very short backup intervals
(leads to long restore times)
_ fixing metadata by hand
without having a backup ;-)
_ no regular backup of
rdiff-backup archives
51. 51
Add Ons
_ FUSE Mount
_ http://code.google.com/p/rdiff-backup-fs/
_ GUI (not official)
_ http://rdiffbackupweb.sourceforge.net/
_ http://www.patrikdufresne.com/en/rdiffweb/
_ http://www.nongnu.org/jbackpack/index.html
_ Icinga Plugin with perfdata patch
_ tkwiki.cc/rdiff_monitoring
54. 54
Comparison
rdiff-backup
rdiff-backup rsnapshot
Data transfer rsync via librsync directly via rsync
Data storing older versions stored as
increments/deltas
unchanged files saved as
hard-links across
snapshots
Data access only newest version
directly accessible
all data directly
accessible
Removal of backups --remove-older-than retain rule
Efficiency highly efficient through
compressed deltas
more space needed
when files change often
Speed slower (CPU intensive) fast through hard links
Push backups yes not by default