From e4e179af81385327314cbe007cbba7cbd5a38875 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Fri, 22 Nov 2024 17:27:41 -0500 Subject: Function to back up Fish, Firefox, Thunderbird data --- fish/functions/backup.fish | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 fish/functions/backup.fish diff --git a/fish/functions/backup.fish b/fish/functions/backup.fish new file mode 100644 index 0000000..4d1cadd --- /dev/null +++ b/fish/functions/backup.fish @@ -0,0 +1,11 @@ +function backup + if not set -q HOSTNAME + set HOSTNAME (hostnamectl hostname) + end + + cd ~/Documents/Backups/$HOSTNAME + cp ~/.local/share/fish/fish_history . + cp ~/.mozilla/firefox/*.default-release/places.sqlite . + cp ~/.thunderbird/*.default-release/Mail/Feeds/feeds.json . + cd - +end -- cgit v1.2.3-70-g09d2