Welcome to the most active Linux Forum on the web.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 01-23-2007, 03:11 AM   #1
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
Ipoh, Malaysia

Last edited by ksleslie; 01-23-2007 at 03:13 AM.
Old 01-23-2007, 03:14 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
/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
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
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
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
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,847

Rep: Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584
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
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 > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:14 AM.

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