Then copy the /root/do-restore.sh to the server you have accidentally changed the permissions , I would say a quick way would be cat the file ,run a while loop and do chmod something like
cat /root/do-restore.sh|while read IN
do
fn=`echo $IN|awk '{print $1}'`
per=`echo $IN|awk '{print $2}'`
chmod $per $fn
done
Until we find out what the O/P actually typed I'd be wary of doing a blunt permissions change from root.
Knowing what was actually typed would help cut the list down because we could no doubt compose a "find ..... -perm ..." statement.
The script posted above will misbehave with filenames containg space characters. If we introduce a delimiter in the "printf" it would be improved.
Cautious approach would be to run the "find" process on both computers for all inodes (not just files), then sort and compare the two listings to see what we are up against. Even on similar systems I would expect differences which must be ignored.