srepac

SAMPLE OUTPUT create-img.sh AKA pikvm-imgbkup

Apr 5th, 2021 (edited)
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.91 KB | None | 0 0
  1. SAMPLE OUTPUT - create-img.sh AKA pikvm-imgbkup
  2.  
  3. [root@v3pikvm ~]# ./create-img.sh
  4. ++ pacman -Q
  5. ++ grep 'kvmd '
  6. ++ awk '{print $2}'
  7. + KVMDVER=2.38-1
  8. + rw
  9. + chk-inst-packages
  10. ++ pacman -Q
  11. ++ egrep nfs-utils
  12. ++ wc -l
  13. + [[ 0 -le 0 ]]
  14. + pacman -S nfs-utils
  15. resolving dependencies...
  16. looking for conflicting packages...
  17.  
  18. Packages (5) ding-libs-0.6.1-3 gssproxy-0.8.4-1 nfsidmap-2.5.3-1 rpcbind-1.2.5-3 nfs-utils-2.5.3-1
  19.  
  20. Total Download Size: 0.56 MiB
  21. Total Installed Size: 2.30 MiB
  22.  
  23. :: Proceed with installation? [Y/n]
  24. :: Retrieving packages...
  25. rpcbind-1.2.5-3-armv7h 31.7 KiB 176 KiB/s 00:00 [########################################################################] 100%
  26. nfsidmap-2.5.3-1-armv7h 48.0 KiB 282 KiB/s 00:00 [########################################################################] 100%
  27. ding-libs-0.6.1-3-armv7h 106.6 KiB 561 KiB/s 00:00 [########################################################################] 100%
  28. gssproxy-0.8.4-1-armv7h 73.2 KiB 0.00 B/s 00:00 [########################################################################] 100%
  29. nfs-utils-2.5.3-1-armv7h 314.4 KiB 1429 KiB/s 00:00 [########################################################################] 100%
  30. (5/5) checking keys in keyring [########################################################################] 100%
  31. (5/5) checking package integrity [########################################################################] 100%
  32. (5/5) loading package files [########################################################################] 100%
  33. (5/5) checking for file conflicts [########################################################################] 100%
  34. (5/5) checking available disk space [########################################################################] 100%
  35. :: Processing package changes...
  36. (1/5) installing rpcbind [########################################################################] 100%
  37. (2/5) installing nfsidmap [########################################################################] 100%
  38. (3/5) installing ding-libs [########################################################################] 100%
  39. (4/5) installing gssproxy [########################################################################] 100%
  40. (5/5) installing nfs-utils [########################################################################] 100%
  41. Optional dependencies for nfs-utils
  42. sqlite: for nfsdcltrack usage [installed]
  43. python: for nfsiostat, nfsdclnts and mountstats usage [installed]
  44. :: Running post-transaction hooks...
  45. (1/4) Creating system user accounts...
  46. Creating group rpc with gid 32.
  47. Creating user rpc (Rpcbind Daemon) with uid 32 and gid 32.
  48. (2/4) Reloading system manager configuration...
  49. (3/4) Creating temporary files...
  50. (4/4) Arming ConditionNeedsUpdate...
  51. ++ pacman -Q
  52. ++ egrep pigz
  53. ++ wc -l
  54. + [[ 0 -le 0 ]]
  55. + pacman -S pigz
  56. resolving dependencies...
  57. looking for conflicting packages...
  58.  
  59. Packages (1) pigz-2.6-1
  60.  
  61. Total Download Size: 0.07 MiB
  62. Total Installed Size: 0.14 MiB
  63.  
  64. :: Proceed with installation? [Y/n]
  65. :: Retrieving packages...
  66. pigz-2.6-1-armv7h 68.0 KiB 174 KiB/s 00:00 [########################################################################] 100%
  67. (1/1) checking keys in keyring [########################################################################] 100%
  68. (1/1) checking package integrity [########################################################################] 100%
  69. (1/1) loading package files [########################################################################] 100%
  70. (1/1) checking for file conflicts [########################################################################] 100%
  71. (1/1) checking available disk space [########################################################################] 100%
  72. :: Processing package changes...
  73. (1/1) installing pigz [########################################################################] 100%
  74. :: Running post-transaction hooks...
  75. (1/1) Arming ConditionNeedsUpdate...
  76. + BACKUPDIR=/mnt/DROPBOX
  77. + mkdir -p /mnt/DROPBOX
  78. ++ mount
  79. ++ grep /mnt/DROPBOX
  80. ++ wc -l
  81. + [[ 0 -eq 1 ]]
  82. ++ grep /mnt/DROPBOX /etc/fstab
  83. ++ grep -v '#'
  84. ++ wc -l
  85. + [[ 0 -lt 1 ]]
  86. + get_nfs_mount
  87. + invalidinput=1
  88. + '[' 1 -eq 1 ']'
  89. + read -p 'Please enter the name/IP of the NFS server: ' NFSSRV
  90. Please enter the name/IP of the NFS server: 192.168.0.233
  91. + read -p 'Please enter the path to mount from NFS server: ' NFSPATH
  92. Please enter the path to mount from NFS server: /mnt/pool/DROPBOX
  93. + SHOWMOUNTS=/tmp/showmount.192.168.0.233
  94. + /bin/rm -f /tmp/showmount.192.168.0.233
  95. + showmount -e 192.168.0.233
  96. ++ grep '/mnt/pool/DROPBOX ' /tmp/showmount.192.168.0.233
  97. ++ wc -l
  98. + [[ 1 -lt 1 ]]
  99. + invalidinput=0
  100. + '[' 0 -eq 1 ']'
  101. + echo 'mount 192.168.0.233:/mnt/pool/DROPBOX /mnt/DROPBOX'
  102. mount 192.168.0.233:/mnt/pool/DROPBOX /mnt/DROPBOX
  103. + mount 192.168.0.233:/mnt/pool/DROPBOX /mnt/DROPBOX
  104. ++ df -h
  105. ++ grep /mnt/DROPBOX
  106. ++ wc -l
  107. + [[ 1 -lt 1 ]]
  108. ++ hostname
  109. + IMAGEFILE=/mnt/DROPBOX/epikvm-2.52-1.img.gz
  110. + dd if=/dev/mmcblk0 bs=4M status=progress
  111. + pigz -c
  112. 58720256 bytes (31 GB, 29 GiB) copied, 24003 s, 19.2 MB/s
  113. 19G epikvm-2.52-1.img.gz
  114.  
Add Comment
Please, Sign In to add comment