Unstoppable Domains

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

Spaceship Spaceship
Watch

SB_GEMINI

VIP Member
Impact
13
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.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
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.
 
0
•••
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
 
0
•••
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.
 
0
•••
The cPanel backup might keep CHMOD settings (if you have cPanel).
 
0
•••
All of these 'mights', can anyone confirm any of these?

Thanks
 
0
•••
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.
 
0
•••
monaco said:
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
 
0
•••
SB_GEMINI said:
monaco said:
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/*
 
0
•••
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! ^_^
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back