Fixed backup scripts

This commit is contained in:
Tyler Mayoff 2025-04-04 20:41:15 -04:00
parent ce404c763c
commit 1e2a69e2d0
4 changed files with 29 additions and 22 deletions

View file

@ -1,5 +1,12 @@
#!/usr/bin/env fish
if test -e source ~/.config/fish/variables-$(hostname).fish
source ~/.config/fish/variables-$(hostname).fish
else
echo "Failed to find back credentials in fish variables file"
exit 1
end
set current_date $(date +%Y-%m-%d)
set log_dir "$XDG_STATE_HOME/logs/backups"