summaryrefslogtreecommitdiff
path: root/fish/functions/backup.fish
blob: 4d1caddc4f28c652c47c453c2c2bea0bd0d2c0ae (plain)
1
2
3
4
5
6
7
8
9
10
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