| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | 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 | 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 | 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. |
| |
| | #4 (permalink) |
| NamePros Regular | 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.
__________________ |
| |
| | #8 (permalink) | |
| NamePros Regular | Quote:
__________________ | |
| |
| | #9 (permalink) | ||
| NamePros Regular | Quote:
| ||
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |