Created
August 20, 2015 12:25
-
-
Save perguth/41e3a138fd151ab67b28 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
| #!/bin/sh | |
| # only done once: | |
| # | |
| # for I in `seq 1 8` ; do | |
| # dd if=/dev/zero of=1GB_$I bs=1M count=1024 | |
| # done | |
| # dd if=/dev/zero of=5GB bs=1M count=5120 | |
| sync | |
| sudo bash -c 'echo 3 > /proc/sys/vm/drop_caches' | |
| sync | |
| echo "backup 8x 1GB files + 1x 5GB file" | |
| rm -rf repo 2> /dev/null | |
| borg init repo | |
| time borg create --compression zlib,6 repo::archive 1GB_* 5GB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment