Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SAMPLE OUTPUT - create-img.sh AKA pikvm-imgbkup
- [root@v3pikvm ~]# ./create-img.sh
- ++ pacman -Q
- ++ grep 'kvmd '
- ++ awk '{print $2}'
- + KVMDVER=2.38-1
- + rw
- + chk-inst-packages
- ++ pacman -Q
- ++ egrep nfs-utils
- ++ wc -l
- + [[ 0 -le 0 ]]
- + pacman -S nfs-utils
- resolving dependencies...
- looking for conflicting packages...
- 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
- Total Download Size: 0.56 MiB
- Total Installed Size: 2.30 MiB
- :: Proceed with installation? [Y/n]
- :: Retrieving packages...
- rpcbind-1.2.5-3-armv7h 31.7 KiB 176 KiB/s 00:00 [########################################################################] 100%
- nfsidmap-2.5.3-1-armv7h 48.0 KiB 282 KiB/s 00:00 [########################################################################] 100%
- ding-libs-0.6.1-3-armv7h 106.6 KiB 561 KiB/s 00:00 [########################################################################] 100%
- gssproxy-0.8.4-1-armv7h 73.2 KiB 0.00 B/s 00:00 [########################################################################] 100%
- nfs-utils-2.5.3-1-armv7h 314.4 KiB 1429 KiB/s 00:00 [########################################################################] 100%
- (5/5) checking keys in keyring [########################################################################] 100%
- (5/5) checking package integrity [########################################################################] 100%
- (5/5) loading package files [########################################################################] 100%
- (5/5) checking for file conflicts [########################################################################] 100%
- (5/5) checking available disk space [########################################################################] 100%
- :: Processing package changes...
- (1/5) installing rpcbind [########################################################################] 100%
- (2/5) installing nfsidmap [########################################################################] 100%
- (3/5) installing ding-libs [########################################################################] 100%
- (4/5) installing gssproxy [########################################################################] 100%
- (5/5) installing nfs-utils [########################################################################] 100%
- Optional dependencies for nfs-utils
- sqlite: for nfsdcltrack usage [installed]
- python: for nfsiostat, nfsdclnts and mountstats usage [installed]
- :: Running post-transaction hooks...
- (1/4) Creating system user accounts...
- Creating group rpc with gid 32.
- Creating user rpc (Rpcbind Daemon) with uid 32 and gid 32.
- (2/4) Reloading system manager configuration...
- (3/4) Creating temporary files...
- (4/4) Arming ConditionNeedsUpdate...
- ++ pacman -Q
- ++ egrep pigz
- ++ wc -l
- + [[ 0 -le 0 ]]
- + pacman -S pigz
- resolving dependencies...
- looking for conflicting packages...
- Packages (1) pigz-2.6-1
- Total Download Size: 0.07 MiB
- Total Installed Size: 0.14 MiB
- :: Proceed with installation? [Y/n]
- :: Retrieving packages...
- pigz-2.6-1-armv7h 68.0 KiB 174 KiB/s 00:00 [########################################################################] 100%
- (1/1) checking keys in keyring [########################################################################] 100%
- (1/1) checking package integrity [########################################################################] 100%
- (1/1) loading package files [########################################################################] 100%
- (1/1) checking for file conflicts [########################################################################] 100%
- (1/1) checking available disk space [########################################################################] 100%
- :: Processing package changes...
- (1/1) installing pigz [########################################################################] 100%
- :: Running post-transaction hooks...
- (1/1) Arming ConditionNeedsUpdate...
- + BACKUPDIR=/mnt/DROPBOX
- + mkdir -p /mnt/DROPBOX
- ++ mount
- ++ grep /mnt/DROPBOX
- ++ wc -l
- + [[ 0 -eq 1 ]]
- ++ grep /mnt/DROPBOX /etc/fstab
- ++ grep -v '#'
- ++ wc -l
- + [[ 0 -lt 1 ]]
- + get_nfs_mount
- + invalidinput=1
- + '[' 1 -eq 1 ']'
- + read -p 'Please enter the name/IP of the NFS server: ' NFSSRV
- Please enter the name/IP of the NFS server: 192.168.0.233
- + read -p 'Please enter the path to mount from NFS server: ' NFSPATH
- Please enter the path to mount from NFS server: /mnt/pool/DROPBOX
- + SHOWMOUNTS=/tmp/showmount.192.168.0.233
- + /bin/rm -f /tmp/showmount.192.168.0.233
- + showmount -e 192.168.0.233
- ++ grep '/mnt/pool/DROPBOX ' /tmp/showmount.192.168.0.233
- ++ wc -l
- + [[ 1 -lt 1 ]]
- + invalidinput=0
- + '[' 0 -eq 1 ']'
- + echo 'mount 192.168.0.233:/mnt/pool/DROPBOX /mnt/DROPBOX'
- mount 192.168.0.233:/mnt/pool/DROPBOX /mnt/DROPBOX
- + mount 192.168.0.233:/mnt/pool/DROPBOX /mnt/DROPBOX
- ++ df -h
- ++ grep /mnt/DROPBOX
- ++ wc -l
- + [[ 1 -lt 1 ]]
- ++ hostname
- + IMAGEFILE=/mnt/DROPBOX/epikvm-2.52-1.img.gz
- + dd if=/dev/mmcblk0 bs=4M status=progress
- + pigz -c
- 58720256 bytes (31 GB, 29 GiB) copied, 24003 s, 19.2 MB/s
- 19G epikvm-2.52-1.img.gz
Add Comment
Please, Sign In to add comment