In the case where the "LVNAME" (whatever it ends up being called) argument is not empty, then that indicates that the job is backing up from a LV and should be snapshot before doing the rsync. General process is:
- Identify that the origin location is on an LV, indicated by LVNAME being non-empty
- Figure out which VG (using the VGNAME variable)
- Need to know whether this is a "thin" LV (automate this?)
- Perform the snapshot (how big? how much extra?)
- Mount the snapshot in read-only mode
- Start the rsync
In the case where the "LVNAME" (whatever it ends up being called) argument is not empty, then that indicates that the job is backing up from a LV and should be snapshot before doing the rsync. General process is: