Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Application developers can seamlessly integrate the Advantage Database install with their application install. Learn the best practices used when setting up silent installs with this seminar.
  #1  
Old July 19th, 2001, 09:36 AM
rroll99 rroll99 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Rochester, NY
Posts: 1 rroll99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Backup files with file permissions

I develop my site in the Windoze world using M$ Frontpage and publish to a host with a UNIX server. Recently I've begun to incorporate a lot of PHP and PERL scripts into the site.

I try to periodically backup my data on the server by downloading all the files and directories to my Windows PC using a FTP program called LeechFTP.

The problem is that this doesn't backup or record any of the UNIX file permissions. I'm worried that it could take hours or days to get all my scripts working again if I had to restore them myself; or if I were to someday move the site to a new host. That's because I would probably have to reread all the original documentation for the scripts to find out what the file permissions should be.

Is there a FTP program, utility, script or UNIX trick that I can use to back up my files along with their file permissions and store them on a Windows machine?

Thanks,

Rob

Reply With Quote
  #2  
Old July 19th, 2001, 06:01 PM
tim snl's Avatar
tim snl tim snl is offline
Code Cruncher
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Tasmania, Australia
Posts: 119 tim snl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 21 m 20 sec
Reputation Power: 8
Quote:
Is there a FTP program, utility, script or UNIX trick that I can use to back up my files along with their file permissions and store them on a Windows machine?

Well ... you might just be in luck there.

Use the 'tar' command to compress all the files on the UNIX server into one file and then transfer this one file down to your Windog for backup. The single file that tar gives you (called a 'tar ball') preserves all the files with their permissions. Just un-tar it on the UNIX box again and ... wallah.

Log into the UNIX machine to the command prompt.

1. To backup go the the directory containing the files and
tar cvpzf <tarball-filename.tgz> *
(this also takes in all sub directories as well)

2. To see what is inside the tarball
tar tvzf <tarball-filename.tgz>

3. To extract the tarball
tar xvpzf <tarball-filename.tgz>

I use linux , you probably should check these options do the same thing on your UNIX flavour. Type 'man tar' to see the list of options. (Manual for Linux GNU tar )
__________________
Beware of a programmer with a screwdriver!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > Backup files with file permissions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway