Last active
March 22, 2020 14:07
-
-
Save rzbrk/af8f97f21d9f7637a96746de49718088 to your computer and use it in GitHub Desktop.
Restic Test Repository Analysis
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
"/home/jan/temp/backup/restic-test/data/c3/c3a153419ce8c0064e27d3cbeff71e2a6acb16ceb83a1fa9ee8bc906ce933b7c", "2020-03-22 14:37:57.580592139 +0100", "b8a9972341d292132e5ca9f8acbd2555" | |
"/home/jan/temp/backup/restic-test/data/45/45ccfe5e9ed2386f406fa2da6662b77daba718ce4ed1c4bb3295df2900f5b208", "2020-03-22 14:37:57.569592128 +0100", "1b780a77ec89de79c829f10e7113a5ab" | |
"/home/jan/temp/backup/restic-test/snapshots/9e0a93a46b83972d0852efc8598e400fa9f65a23e65a370da69e0fc33db498d4", "2020-03-22 14:37:57.597592157 +0100", "8ca20f649a162d713f7695f6979c03fa" | |
"/home/jan/temp/backup/restic-test/config", "2020-03-22 14:37:15.673548243 +0100", "fcdf943a4ecba6697f26d04867dd7891" | |
"/home/jan/temp/backup/restic-test/index/81b6199f6d0044154c9e926b8a3f7052c383531ab54fb13f58f81773e39e86d4", "2020-03-22 14:37:57.589592148 +0100", "87a29b03ab29dad2224034a42e80fb17" | |
"/home/jan/temp/backup/restic-test/keys/e3080f9cfc5f76398232c133f43b5c9a485fe2164ee9f797779626f883b2af3d", "2020-03-22 14:37:15.666548236 +0100", "9399b554667f798937b814759c816f29" |
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
"/home/jan/temp/backup/restic-test/data/92/92d1da1171b67a3a221a2ee74909e97510164903ac6fa8610b81fe85663289e8", "2020-03-22 14:42:06.881844735 +0100", "48cb52d1e875ac7b2c9dedb18415ac96" | |
"/home/jan/temp/backup/restic-test/data/c3/c3a153419ce8c0064e27d3cbeff71e2a6acb16ceb83a1fa9ee8bc906ce933b7c", "2020-03-22 14:37:57.580592139 +0100", "b8a9972341d292132e5ca9f8acbd2555" | |
"/home/jan/temp/backup/restic-test/data/45/45ccfe5e9ed2386f406fa2da6662b77daba718ce4ed1c4bb3295df2900f5b208", "2020-03-22 14:37:57.569592128 +0100", "1b780a77ec89de79c829f10e7113a5ab" | |
"/home/jan/temp/backup/restic-test/snapshots/9e0a93a46b83972d0852efc8598e400fa9f65a23e65a370da69e0fc33db498d4", "2020-03-22 14:37:57.597592157 +0100", "8ca20f649a162d713f7695f6979c03fa" | |
"/home/jan/temp/backup/restic-test/snapshots/abfbfd143675afb6c4b71ecd63f288edc3a0f2b44bc2e684a66e34bfa7e36356", "2020-03-22 14:42:06.899844753 +0100", "feaf855685288ebab1b58b677c082e6e" | |
"/home/jan/temp/backup/restic-test/config", "2020-03-22 14:37:15.673548243 +0100", "fcdf943a4ecba6697f26d04867dd7891" | |
"/home/jan/temp/backup/restic-test/index/81b6199f6d0044154c9e926b8a3f7052c383531ab54fb13f58f81773e39e86d4", "2020-03-22 14:37:57.589592148 +0100", "87a29b03ab29dad2224034a42e80fb17" | |
"/home/jan/temp/backup/restic-test/index/99da886685c8a5626732be7facd88c9c221dd4fb152665427fb9e4eed7c5deec", "2020-03-22 14:42:06.892844746 +0100", "8a848716ea8877da28abbfc9b24d8ca7" | |
"/home/jan/temp/backup/restic-test/keys/e3080f9cfc5f76398232c133f43b5c9a485fe2164ee9f797779626f883b2af3d", "2020-03-22 14:37:15.666548236 +0100", "9399b554667f798937b814759c816f29" |
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
[jan@t460 backup]$ restic -r restic-test/ snapshots | |
enter password for repository: | |
repository c37bfbb9 opened successfully, password is correct | |
found 1 old cache directories in /home/jan/.cache/restic, pass --cleanup-cache to remove them | |
ID Time Host Tags Paths | |
------------------------------------------------------------------------------ | |
9e0a93a4 2020-03-22 14:37:48 t460 /home/jan/temp/testdata | |
abfbfd14 2020-03-22 14:42:03 t460 /home/jan/temp/testdata | |
------------------------------------------------------------------------------ | |
2 snapshots |
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
#!/bin/bash | |
#dir="/home/jan/hidrive/restic-backup/" | |
dir=$1 | |
# Loop over all restic backup files | |
for file in $(find $dir -type f); do | |
#echo "$file" | |
# Modification time | |
tmod=$(stat -c %y ${file}) | |
# md5 checksum | |
md5=$(md5sum ${file} | awk '{print $1}') | |
# Output | |
echo "\"${file}\", \"${tmod}\", \"${md5}\"" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Durch den Vergleich der beiden log-Dateien kann man sehen, dass restic keine bestehenden Dateien verändert, sondern lediglich neue Dateien anlegt, wenn ein neues Snapshot erzeugt wird. Die Dateien des alten Snapshots sowie bspw. die Konfig-Datei bleiben unverändert. Das mag sich ändern, wenn man bspw. das kennwort ändert oder andere Veränderungen an dem Repo vornimmt.