dotfiles/backup.sh

10 lines
390 B
Bash
Raw Permalink Normal View History

2023-02-11 04:49:10 +00:00
#!/bin/bash
if [[ -d ~/.config/fish ]]; then
echo "found existing fish config, backing up"
tar chfI "/home/$USER/.config/fish$(date +%s).tar.zst" "zstd -19 -T0" "/home/$USER/.config/fish"
fi
if [[ -d ~/.config/kitty ]]; then
echo "found existing kitty config, backing up"
tar chfI "/home/$USER/.config/kitty$(date +%s).tar.zst" "zstd -19 -T0" "/home/$USER/.config/kitty"
fi