- Timestamp:
- Nov 9, 2016 2:02:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/docs/testbox-maintenance.sh
r64600 r64613 37 37 MY_BACKUP_MNT_TEST_FILE="/mnt/testbox-backup/testbox-backup" 38 38 MY_GLOBAL_LOG_FILE="${MY_BACKUP_ROOT}/maintenance.log" 39 MY_DD_BLOCK_SIZE=256K 39 40 40 41 MY_IP="" … … 322 323 if test -b "${MY_SRC}"; then 323 324 InfoMsg "Backing up ${MY_SRC} to ${MY_DST}..."; 324 dd if="${MY_SRC}" bs= 2M| gzip -c > "${MY_DST}";325 dd if="${MY_SRC}" bs=${MY_DD_BLOCK_SIZE} | gzip -c > "${MY_DST}"; 325 326 MY_RCS=("${PIPESTATUS[@]}"); 326 327 if test "${MY_RCS[0]}" -eq 0 -a "${MY_RCS[1]}" -eq 0; then … … 346 347 if test -f "${MY_SRC}"; then 347 348 InfoMsg "Restoring ${MY_SRC} onto ${MY_DST}..."; 348 gunzip -c "${MY_SRC}" | dd of="${MY_DST}" bs= 64K;349 gunzip -c "${MY_SRC}" | dd of="${MY_DST}" bs=${MY_DD_BLOCK_SIZE} iflag=fullblock; 349 350 MY_RCS=("${PIPESTATUS[@]}"); 350 351 if test ${MY_RCS[0]} -eq 0 -a ${MY_RCS[1]} -eq 0; then
Note:
See TracChangeset
for help on using the changeset viewer.