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