#!/bin/bash
touch ./'file with spaces'
touch ./'file with more spaces'

for name in $(ls -1 ./); do
 echo cp "/directory/$name" /backup/
 echo mv /new/replacement "/directory/$name"
 echo "replaced /directory/$name with /new/replacement and stored backup in /backup"
done