Skip to content

dfki-asr/lvm-volume-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

LVM Volume Backup Tools

Introduction

The lvm_backup.sh tool is designed to backup LVM volumes by using snapshots.

Running lvm_backup.sh with the --help option will output the help information below.

Backup LVM volumes

lvm_backup.sh [options]
options:
  -l, --list-volumes           Print list of LVM volumes
  -c, --cleanup                Remove old snapshots created by this tool but not deleted due to an error.
                               No backup is performed after the cleanup
  -b, --backup-volume=         Backup volume specified in format VOLUME_GROUP/VOLUME_NAME.
                               If no backup volumes are specified, all found volumes will be backed up
  -i, --ignore-volume=         Ignore volume specified in format VOLUME_GROUP/VOLUME_NAME
      --ignore-mount-error     Ignore errors when mounting volumes and continue with other volumes
  -s, --snapshot-prefix=       Snapshot prefix used for backup snapshots (default: bak_snap_)
  -w, --part-rw                Add partitions in read/write mode
      --overwrite              Overwrite backup files
  -p, --dest-prefix=           Destination path prefix (add / at the end for directory)
      --rsync                  Use rsync instead of tar
  -d, --debug                  Enable debug mode
      --log-file=              Log all output and errors to the specified log file
      --                       End of options

About

Tools for LVM volume backup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages