Skip to content

Instantly share code, notes, and snippets.

@dmitriysafronov
Last active November 21, 2024 19:59
Show Gist options
  • Save dmitriysafronov/cf604aeb0898cdbeae6450be2b36d06e to your computer and use it in GitHub Desktop.
Save dmitriysafronov/cf604aeb0898cdbeae6450be2b36d06e to your computer and use it in GitHub Desktop.
Rsync your Timeshift backup to another drive
#!/usr/bin/env sh
if [ -z "$1" ]; then
echo "Specify Timeshift temp dir!"
exit 1
fi
rsync -avH \
--numeric-ids \
--progress \
--delete-before \
--log-file="timeshift.log" \
"/run/timeshift/$1/backup/timeshift/" \
timeshift/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment