[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 04-28-2007, 05:04 AM   #1 (permalink)
NamePros Regular
 
SB_GEMINI's Avatar
 
Join Date: Mar 2005
Location: Newport, UK
Posts: 925
119.25 NP$ (Donate)

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, 09:40 AM   #2 (permalink)
cef
NamePros Regular
 
Join Date: May 2004
Location: NYC
Posts: 236
76.50 NP$ (Donate)

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, 10:51 AM   #3 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

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, 11:04 AM   #4 (permalink)
NamePros Regular
 
SB_GEMINI's Avatar
 
Join Date: Mar 2005
Location: Newport, UK
Posts: 925
119.25 NP$ (Donate)

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, 11:38 AM   #5 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

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, 08:03 AM   #6 (permalink)
NamePros Regular
 
DylanButler's Avatar
 
Join Date: Jan 2006
Location: San Diego, CA
Posts: 704
0.00 NP$ (Donate)

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 behold


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

Thanks
__________________
:great: -Dylan Butler

EXAMP - San Diego Web Design
DylanButler is offline  
Old 04-30-2007, 11:12 AM   #7 (permalink)
NamePros Regular
 
monaco's Avatar
 
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 695
314.80 NP$ (Donate)

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, 01:40 PM   #8 (permalink)
NamePros Regular
 
SB_GEMINI's Avatar
 
Join Date: Mar 2005
Location: Newport, UK
Posts: 925
119.25 NP$ (Donate)

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


Quote:
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, 02:45 PM   #9 (permalink)
NamePros Regular
 
abdussamad's Avatar
 
Join Date: Jul 2006
Location: Karachi
Posts: 708
94.60 NP$ (Donate)

abdussamad is just really niceabdussamad is just really niceabdussamad is just really niceabdussamad is just really nice


Quote:
Originally Posted by SB_GEMINI
Quote:
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/*
abdussamad is offline  
Old 05-02-2007, 11:13 AM   #10 (permalink)
NamePros Regular
 
monaco's Avatar
 
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 695
314.80 NP$ (Donate)

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:45 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85