diff options
author | Anthony Wang | 2024-11-22 17:27:41 -0500 |
---|---|---|
committer | Anthony Wang | 2024-11-22 17:27:41 -0500 |
commit | e4e179af81385327314cbe007cbba7cbd5a38875 (patch) | |
tree | 95649f9c0ebaa87fde1204957b238d549b52636f | |
parent | bc8da5fbb18bf1d49ee03dd4058853ebf1e69038 (diff) |
Function to back up Fish, Firefox, Thunderbird data
-rw-r--r-- | fish/functions/backup.fish | 11 |
1 files changed, 11 insertions, 0 deletions
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 |