Add basename in backup filename

For a correct use of backups insert basename in the name of the backup file.