@ -0,0 +1,14 @@
#!/bin/sh
bakrotate() {
if [ -f $1 ]
then
if [ -f "$1.bak" ]
then bakrotate "$1.bak"
fi
mv "$1" "$1.bak"
}
bakrotate "$1.bak"
cp $1 $1.bak