#!/bin/sh
set -x

exec sudo \
	ionice -c 3 \
		nice rsync \
		-vrtpAXlHogS \
		--progress \
		--delete-after \
		"$@" -- /media/archive/* "/media/${1:-extern}"


#!/bin/sh
set -x

exec sudo \
	ionice -c 3 \
		nice rsync \
		-vrtpAXlHogS \
		--progress \
		--delete-before \
		"$@" -- /media/archive/* "/media/${1:-extern}"


Change to --delete-before to alleviate space consumption.
Change to --delete-before to alleviate space consumption.
