Skip to content

Instantly share code, notes, and snippets.

@oxygen
Created April 2, 2020 13:58
Show Gist options
  • Save oxygen/f8bb87b50aee98a1c194df7589389890 to your computer and use it in GitHub Desktop.
Save oxygen/f8bb87b50aee98a1c194df7589389890 to your computer and use it in GitHub Desktop.
sshfs oxyge@192.168.1.2:/X:/Backups /Backups
dd if=/dev/sda bs=16M status=progress | xz -2 --block-size=16MiB > /Backups/dev-sda.xz
mkdir /xxx
mount -t cifs -o username=oxyge //192.168.1.2/Backups /xxx
xz -d < /xxx/dev-sda.xz - | dd of=/dev/sda bs=16M status=progress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment