config.phundrak.com/fishfunctions/backup.fish
2019-08-26 10:06:35 +02:00

4 lines
145 B
Fish

function backup -d "backs up a file and appends to its name the date and time of backup"
cp $argv[1] $argv[1].bak.(date +"%Y%m%d%H%M%S")
end