Last active
January 6, 2025 09:20
-
-
Save fragtion/03b94f4cc315a04eb1016b3a0272f9ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Expand /tmp (if tmpfs) | |
mount -o remount,size=5G /tmp/ | |
# Clone to multiple disks with progress | |
dd if=/dev/sda | pv -s $(blockdev --getsize64 /dev/sda) | tee >(dd of=/dev/sdb) | tee >(dd of=/dev/sdc) | dd of=/dev/sdd | |
# faster... and source can be image or device | |
pv /dev/sda | tee >(dd bs=64k of=/dev/sdb) >(dd bs=64k of=/dev/sdc) >(dd bs=64k of=/dev/sdd) | dd bs=64k of=/dev/sde | |
# wiretap server | |
nohup $(WIRETAP_RELAY_INTERFACE_PRIVATEKEY="..." WIRETAP_RELAY_INTERFACE_PORT="51820" WIRETAP_RELAY_PEER_PUBLICKEY="..." WIRETAP_RELAY_PEER_ENDPOINT="remote-addr:remote-port" WIRETAP_RELAY_INTERFACE_IPV4=172.20.0.1 WIRETAP_RELAY_INTERFACE_LOCALHOSTIP=172.20.0.1 WIRETAP_RELAY_PEER_ALLOWED=172.20.0.2/32,0.0.0.0/0 wiretap serve --simple -q) > /dev/null 2>&1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment