summaryrefslogtreecommitdiff
path: root/fish/functions/backup.fish
blob: ec42b1ec65af031894ba724e68b3d00a60f0d7d8 (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