Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-10-2005, 07:43 PM
|
#1
|
Member
Registered: Nov 2004
Distribution: fc4
Posts: 104
Rep:
|
backup files, tar, do i need to make a copy
hi all
as it says in the title
when i archive a file, should i make a copy of the file, then tar and gzip the copy
or can i just tar and gzip the original file
what i am trying to do is backup my web server, eg. httpdocs
eg. tar -cf httpdocs_date.tar /httpdocs
gzip -9 httpdocs_date.tar
or
cp /httpdocs /httpdocs_date
tar -cf httpdocs_date.tar /httpdocs_date
gzip -9 httpdocs_date.tar
with speed, impact on web site, restoration, and data integrity as the key points
would it just be best to shutdown the server while this is being done?
the directory i'm guessing will be massive, several gigs at least
thanks
dave
|
|
|
05-10-2005, 08:16 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
If httpdocs is static (not files written to it by client-sessions)
the tar-ing of the actual thing should be just fine. If you
have the content modified even a copy wouldn't prevent
broken files necessarily - you'd have to stop the service(s),
make your copy and restart them.
Cheers,
Tink
|
|
|
05-10-2005, 08:42 PM
|
#3
|
Member
Registered: Nov 2004
Distribution: fc4
Posts: 104
Original Poster
Rep:
|
hey thanks for your reply
so if i stopped the service would i still need to make a copy to tar?
|
|
|
05-10-2005, 08:52 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Nope - the only "problem" is that a tar with bz2
compression would make for a longer downtime
than a copy. If you tar, restart the service, and
THEN compress you should be sweet :}
Cheers,
Tink
|
|
|
All times are GMT -5. The time now is 06:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|