You can use find to exclude a specified subdir, as in
Code:
cd httpdocs
find . -maxdepth 1 -wholename ./datafiles -prune -o -print
you will likely to exclude the . at the beginning of the filelist, as for
putting all this together you will have something like
Code:
cd httpdocs
find . -maxdepth 1 -wholename ./datafiles -prune -o -print | egrep -v ^.$ | xargs rar a ../httpdocs.rar