Skip to content

Instantly share code, notes, and snippets.

@perguth
Created August 20, 2015 12:25
Show Gist options
  • Select an option

  • Save perguth/41e3a138fd151ab67b28 to your computer and use it in GitHub Desktop.

Select an option

Save perguth/41e3a138fd151ab67b28 to your computer and use it in GitHub Desktop.
#!/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