| Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise. |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-23-2007, 03:11 AM
|
#1
|
|
LQ Newbie
Registered: Jan 2007
Posts: 2
Rep:
|
Unable to Backup /SYS folder
Hi, My name is Leslie, I have a problem backing up /sys directory. I'm running Linux Enterprise ES ver 4.0 .
I'm using Symantec Backup exec ver 10.d on Windows server 2003 to do the backup (The server is : HP Proliant DL380). I've also installed the Veritas Linux remote agent agent in this server. The backup device which is used is the HP Ultrium LTO2.
My Linux is residing on another HP Proliant DL380 server.
When I backup the Linux server the backup process suddenly terminates when it reaches about 63% complete. The error message is " The media operation was terminated by the user.
After testing several backup jobs I found out that if I skip the /SYS directory in Linux from the backup. The backup will go through without any problems.
I'm not sure if it is normal that the Linux /sys directory cannot be backed-up. Is there any work around to this so that I will be able to backup all the contents of my linux server?
Need your expert advice.
Thanks. Regards.
KS Leslie
ksleslie@ish.kpjhealth.com.my
+60165210125
Ipoh, Malaysia
Last edited by ksleslie; 01-23-2007 at 03:13 AM.
|
|
|
|
01-23-2007, 03:14 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,816
|
/sys is not a real directory, it's an interface to memory spaces, devices etc. it can not, and should not be backed up.
|
|
|
|
01-23-2007, 03:51 PM
|
#3
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
You should also eliminate /proc and several other filesystems that won't need or don't need to be backed up as well..
A typical backup that I usually do is /etc, /boot, /home, /var, /usr and any other partitions you have valuable data.
|
|
|
|
03-15-2012, 04:16 PM
|
#4
|
|
Member
Registered: Mar 2012
Posts: 175
Rep: 
|
I know this post is old but a question for present and prospective viewers.
Trickykid mentioned not to backup folders such as sys, proc, tmp, etc.
He then mentioned a typical backup would only include the /etc, /boot, /home/, /var, and /usr.
However, shouldn't the /lib folder be backed up as well as the .* ?
When I run rsync, my syntax to copy all hidden files and folders starting from the root directory is as follows:
rsync -av .* /dir/to/backup --exclude=sys etc.
|
|
|
|
03-19-2012, 08:55 PM
|
#5
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 15,260
|
Read his (trickykid) 2nd sentence in carefully...
First, he said 'typical' ie not always.
2nd he said 'and any other partitions you have valuable data.'
There's no way to list all the dirs that should be backed up on every system; too many variations.
However, /proc, /sys are not real dirs (as above) so should be ignored.
I think he certainly implied ALL files in dirs to be backed up, inc hidden.
/tmp is optional; some places that are heavily audited want that backed up as well ...
|
|
|
|
| Thread Tools |
Search 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:35 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
|
|