Differences
This shows you the differences between two versions of the page.
linux_wiki:freeipa_backup_ipa_data [2016/11/26 23:11] billdozor [Freeipa Backup Ipa Data] |
linux_wiki:freeipa_backup_ipa_data [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== FreeIPA Backup IPA Data ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | Run this script periodically via cron to create data only online local backups of the IPA database. Will also cleanup older backups. | ||
- | |||
- | **Checklist** | ||
- | * Distro(s): Enterprise Linux 6/7 | ||
- | * Other: [[http:// | ||
- | |||
- | ---- | ||
- | |||
- | ====== The Script ====== | ||
- | |||
- | Run this script periodically via cron. | ||
- | |||
- | <code bash> | ||
- | #!/bin/bash | ||
- | # Name: cron_backup-ipa-data.sh | ||
- | # Description: | ||
- | # Last Updated: 2016-10-07 | ||
- | # Recent Changes: | ||
- | ################################################################ | ||
- | |||
- | # | ||
- | #### Main Starts Here #### | ||
- | # | ||
- | |||
- | echo -e " | ||
- | # Perform an online, data only backup | ||
- | / | ||
- | |||
- | # Cleanup => Find directories older than 7 days and remove them | ||
- | echo -e " | ||
- | find / | ||
- | |||
- | echo -e " | ||
- | </ | ||
- | |||
- | ---- | ||