Skip to content

Instantly share code, notes, and snippets.

@frederickding
Created May 7, 2024 01:47
Show Gist options
  • Save frederickding/6de0bbf82b484c46e7a8991d1adbf26f to your computer and use it in GitHub Desktop.
Save frederickding/6de0bbf82b484c46e7a8991d1adbf26f to your computer and use it in GitHub Desktop.
mbuffer to LTO tape over network

On the tape server

Using 5567 as an example TCP port

sudo mbuffer -I 5567 -m 8G -P 80 -s 262144 -o /dev/nst0

On the file server

This also writes out a plaintext file in the local directory (filelist.txt) logging the files transferred.

sudo tar -cv -b512 --label="myvolume-$(date -uI)" --exclude-backups \
  --exclude="#recycle" --exclude="#snapshot" --exclude=".DS_Store" \
  --exclude="thumbs.db" --exclude="@eaDir" --exclude="$RECYCLE.BIN" \
  -f - /volume1/homes 2> >(tee filelist.txt >&2) | mbuffer -O 192.168.1.100:5567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment