NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page How to keep CHMOD settings when downloading files from web server to local computer?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 04-28-2007, 06:04 AM THREAD STARTER               #1 (permalink)
NamePros Regular
 
SB_GEMINI's Avatar
Join Date: Mar 2005
Location: Newport, UK
Posts: 930
SB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to behold
 



How to keep CHMOD settings when downloading files from web server to local computer?


How do you keep chmod permissions to files the way they are on your web server when you are downloading from a webserver to a local computer, running windows xp.

I have like hundreds of files with individual chmod settings i cant go through each one remembering what each individual files chmod setting is, how to a backup my webservers files to my local machine with all the chmod settings retained, so that i can just upload all the files back up to my webserver and expect all the chmod settings to be the same as when i first downloaded the files.
SB_GEMINI is offline  
Old 04-28-2007, 10:40 AM   #2 (permalink)
cef
NamePros Regular
Join Date: May 2004
Location: NYC
Posts: 236
cef is a jewel in the roughcef is a jewel in the roughcef is a jewel in the rough
 


Animal Rescue
If you use rsync There are options for preserving chmod settings (the linked page lists all the options and gives examples).

If you use FTP (not recommended for backing up sites), it depends on the ftp client you're using.

Not sure what happens with scp/sftp, but IIRC chmod settings are preserved.

I'd recommend experimenting with rsync a little.
cef is offline  
Old 04-28-2007, 11:51 AM   #3 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Windows XP can't retain Linux Chmod settings sadly as Windows doesn't use "chmod".. So the only way would be to zip them on a Linux server, download them.. Than don't unzip them, as when you open them it will remove the chmod.. And I'm not even sure if they will keep the chmod settings.

- Steve
__________________
I feel old.
iNod is offline  
Old 04-28-2007, 12:04 PM THREAD STARTER               #4 (permalink)
NamePros Regular
 
SB_GEMINI's Avatar
Join Date: Mar 2005
Location: Newport, UK
Posts: 930
SB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to behold
 



Thanks for the responses,

is there a php script or something at all that can scan all the files on a web server or in selected directory(s) that produces a report of what chmod permissions certin files have?

I have a vbulletin forum and have installed quite a few plugins that required me to chmod certin files, problem is i cant remember this many months down the line which files i changed the chmod permisions for

if there was some sort of php script which could check what files had chmod permisions it would be a great help.
SB_GEMINI is offline  
Old 04-28-2007, 12:38 PM   #5 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
The cPanel backup might keep CHMOD settings (if you have cPanel).
Dan is offline  
Old 04-30-2007, 09:03 AM   #6 (permalink)
NamePros Regular
 
DylanButler's Avatar
Join Date: Jan 2006
Location: San Diego, CA
Posts: 735
DylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to behold
 



All of these 'mights', can anyone confirm any of these?

Thanks
DylanButler is offline  
Old 04-30-2007, 12:12 PM   #7 (permalink)
NamePros Regular
 
monaco's Avatar
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 689
monaco will become famous soon enough
 



Tarball em. Use the -p flag to the tar command to preserve permissions inside the tarball. You can gzip or bzip also if you so choose via the -z and -j flags, respectively.
__________________
My Website | My Blog
monaco is offline  
Old 04-30-2007, 02:40 PM THREAD STARTER               #8 (permalink)
NamePros Regular
 
SB_GEMINI's Avatar
Join Date: Mar 2005
Location: Newport, UK
Posts: 930
SB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to beholdSB_GEMINI is a splendid one to behold
 



Originally Posted by monaco
Tarball em. Use the -p flag to the tar command to preserve permissions inside the tarball. You can gzip or bzip also if you so choose via the -z and -j flags, respectively.
is there a tutorial anywhere showing how to do this as i have no idea how to go about it. thanks
SB_GEMINI is offline  
Old 04-30-2007, 03:45 PM   #9 (permalink)
NamePros Regular
 
abdussamad's Avatar
Join Date: Jul 2006
Location: Karachi
Posts: 791
abdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of light
 



Originally Posted by SB_GEMINI
Originally Posted by monaco
Tarball em. Use the -p flag to the tar command to preserve permissions inside the tarball. You can gzip or bzip also if you so choose via the -z and -j flags, respectively.
is there a tutorial anywhere showing how to do this as i have no idea how to go about it. thanks
Try this tar -czvpf my_stuff.tgz path_to_dir/*
__________________
site unblocker - Computer Hardware
abdussamad is offline  
Old 05-02-2007, 12:13 PM   #10 (permalink)
NamePros Regular
 
monaco's Avatar
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 689
monaco will become famous soon enough
 



Code:
man tar
THat will get you the manpage for tar. It's chock full of syntax examples and other goodies, like a description of all the flags that can be passed to the tar command! ^_^
__________________
My Website | My Blog
monaco is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 10:57 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger