| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Mar 2005 Location: Newport, UK
Posts: 930
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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.
__________________ |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: May 2004 Location: NYC
Posts: 236
![]() ![]() ![]() | 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. |
| |
| | #3 (permalink) |
| Eating Pie Join Date: Nov 2004 Location: Canada
Posts: 2,272
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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. |
| |
| | THREAD STARTER #4 (permalink) |
| NamePros Regular Join Date: Mar 2005 Location: Newport, UK
Posts: 930
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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.
__________________ |
| |
| | THREAD STARTER #8 (permalink) | ||||
| NamePros Regular Join Date: Mar 2005 Location: Newport, UK
Posts: 930
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
__________________ | ||||
| |
| | #9 (permalink) | ||||||||
| NamePros Regular Join Date: Jul 2006 Location: Karachi
Posts: 791
![]() ![]() ![]() ![]() ![]() |
| ||||||||
| |