Completed luna config for real this time
This commit is contained in:
parent
5ad8529721
commit
2c75ae213a
17 changed files with 357 additions and 62 deletions
14
misc/backup.sh
Executable file
14
misc/backup.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/run/current-system/sw/bin/zsh
|
||||
|
||||
cd /home/horseman
|
||||
file=backups/$(date +%Y-%m-%d).tar
|
||||
tar -cf $file Documents
|
||||
|
||||
if grep -q $(sha256sum $file) backups/sum; then
|
||||
echo 'hashes match, quitting'
|
||||
rm $file
|
||||
exit 0
|
||||
fi
|
||||
echo $(sha256sum $file) > backups/sum
|
||||
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue