Commit 03c8e1e
nasbackup.sh: add optional backup compression via -c flag
Add -c/--compress flag that produces compressed qcow2 backup files,
reducing storage usage on the NAS backup target.
For stopped VMs: passes -c to qemu-img convert directly.
For running VMs: re-compresses push backup output with qemu-img
convert -c after the backup job completes.
Compression is off by default to preserve existing behavior and
avoid increased CPU usage on hosts that don't need it.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 61afb4c commit 03c8e1e
1 file changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
115 | 131 | | |
116 | 132 | | |
117 | 133 | | |
| |||
131 | 147 | | |
132 | 148 | | |
133 | 149 | | |
134 | | - | |
| 150 | + | |
135 | 151 | | |
136 | 152 | | |
137 | 153 | | |
| |||
165 | 181 | | |
166 | 182 | | |
167 | 183 | | |
168 | | - | |
| 184 | + | |
169 | 185 | | |
170 | 186 | | |
171 | 187 | | |
| |||
207 | 223 | | |
208 | 224 | | |
209 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
210 | 230 | | |
211 | 231 | | |
212 | 232 | | |
| |||
0 commit comments