mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
15 lines
244 B
Bash
15 lines
244 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
compress_f()
|
|
{
|
|
cat "$1" | python3 -c "import zlib,sys; sys.stdout.buffer.write(zlib.compress(sys.stdin.buffer.read()))" > "${1}.z"
|
|
xxd -i "${1}.z" > "${2}"
|
|
rm "${1}.z"
|
|
}
|
|
|
|
compress_f btrfs2.vhdx cache_init_vhdx.h
|
|
|