Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
Stephen Jones edited this page Apr 8, 2014 · 1 revision

This directory contains backups scripts

lvm_snap_backup

./lvm_snap_backup -f {location} -v

Flags

-f {location} Location where to write the output hostname-mksysb.tar.gz " -v verbose

The above script performs the following actions:-

  1. Creates a lock file as we don't want multiple copies running.
  2. Determines if the host is using LVM for the root filesystem.
  3. Checks we have enough space in the volume group.
  4. Create a snap of all lvs apart from swap.
  5. Mount all snap lvs under /mnt.
  6. Create a tar of snap lvs using tar, pigz and pv if available.
  7. Unmount the snap lvs.
  8. Delete snap lvs.
  9. Remove lock file
Clone this wiki locally