Last active
November 21, 2024 19:59
-
-
Save dmitriysafronov/cf604aeb0898cdbeae6450be2b36d06e to your computer and use it in GitHub Desktop.
Rsync your Timeshift backup to another drive
This file contains 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
#!/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