Backup website need info permissions

I do a backup of my website every week, I just download all the files from the website
to my computer with database from MySQL etc... and then burn them into a CD .
the thing is that I would like to create something that can tell me, or print into a file
all the permissions of the dirs lets says that If I type 'ls -alR > info.txt' I see public files
and some are just system files etc.. instead of (-rw-rw-r--  1 apache apache 55380 Jul  6 15:37 rans.log)
I would like something like (755 /home/dir/html/rans.log)  I want to keep a record of that just in case one day
I change hosting company, I know which dirs,files and what permissions they have.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If you have a shell access to a host with your website you could archive the whole document root of your site with tar:

tar cvjf backup.tar.bz2 /path/to/your/document/root
( or tar cvzf backup.tar.gz if you want gzip compression instead)

and then download this archive to your computer and burn it to cd.

This way you have all your files in one archive and also you have all permissions stored with it as well :)

and on your new host you just upload previously created archive and extract it with following command:

cd /path/to/your/new/document/root

tar xvpjf backup.tar.bz2 ( where backup.tar.bz2 is archive that you hav uploaded)
or tar xvzpf backup.tar.gz if you used gzip compression.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CyberPunksAuthor Commented:
even better =)
find . -type f -exec stat -c "%a %n" {} \; >info.txt

koool :-)
btw. I'd suggest to make checksums with md5sum for files which are recorded on DVD-R(W) or CD-R(W).
Had a lot of crappy files on some cheap DVD-R's...
CyberPunksAuthor Commented:
thank you doomtrooper =)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.