LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 01-23-2007, 03:11 AM   #1
ksleslie
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
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.
 
Old 01-23-2007, 03:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
/sys is not a real directory, it's an interface to memory spaces, devices etc. it can not, and should not be backed up.
 
Old 01-23-2007, 03:51 PM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
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.
 
Old 03-15-2012, 04:16 PM   #4
rootaccess
Member
 
Registered: Mar 2012
Posts: 211

Rep: Reputation: Disabled
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.
 
Old 03-19-2012, 08:55 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
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 ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
backup folder (rsync) os2 Linux - Software 4 03-29-2006 09:07 PM
System crashed - how to backup folder? zaoka Linux - Software 4 09-04-2005 11:37 AM
Is a Linux sys w/o any passwd's as secure as a microsoft windows sys w/no passwd? t3gah Linux - Security 4 04-22-2005 08:01 PM
Sys Backup To CDR Hectic Linux - Newbie 2 10-13-2004 04:11 AM
Unable to delete folder arctuniol Red Hat 2 10-11-2004 02:07 PM


All times are GMT -5. The time now is 10:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration