- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Backing up Linux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2002 01:36 PM
тАО12-17-2002 01:36 PM
now HP ML530 system. What would anyone suggest to use for backing up the file systems.
I've tried tar and it gets to the /proc directory, processing the file kore (I think)
gets and error, and then reboots. No sorry, can't remember what the error message says. I've looked through the Linux system here at HP Forums and don't find any topics about "backup" and Linux. The OS has Amanda on it, but so far haven't figured it out. Just looking for other opinions.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2002 03:15 PM
тАО12-17-2002 03:15 PM
Re: Backing up Linux
Things like Arkeia, Backup Edge, BRU are just a few of the commercial products available.
Personally, I use "Backup Edge", and 'cpio' in custom written scripts.
It all depends on the security you want (BE offers thigns like bit-level verify etc.), and how much you're willing to pay.
With relation to the error you are getting using 'tar' however, you need to exclude the 'proc' file system (as it isn't real). A simple '--exclude /proc' should suffice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 06:49 AM
тАО12-18-2002 06:49 AM
SolutionThe file /proc/kcore is a root-accessible-only map of system memory. You'll notice it's the same size as all the physical memory installed in your system.
As Stuart has said, you don't need to backup /proc -- it's a virtual file system which represents internal system states, process information, etc. It's actually very nifty, but there's no user data there.
I would create a list of mountpoints you want to backup, then decide what value you place on the data in each. If this is mission critical stuff, you may want to investigate a commercial product. I've had a lot of experience with Legato's Networker product, which can run on a variety of platforms, including Linux, and from any of those platforms can backup a number of platforms, including Linux. As for backup hardware -- a simple tape stacker should make your life a lot easier.
If a manual tar process is fine, then create a work list and a simple script:
Perhaps call your worklist /etc/backupworklist:
/home
/etc
/var
/usr
whateverelseyouwant
Then have a simple backup script:
#!/bin/sh
admin="your@email.address"
tapedev=/dev/st0
worklist=`cat /etc/backupworklist`
backuplog=/var/tmp/backup.log
date=`date`
(tar cvpf $tapedev "$worklist" > $backuplog) && mt -f $tapedev rewoffl
mail -s "Backup log: $date" $admin < $backuplog
#end of script
This is very, very rough (and, BTW, untested, I just typed it in the reply box - if you decide to try this out, please be careful).
You'll notice that I used a lot of variables in the script -- by keeping the admin name, the tape device, the log, et al in variables, I can change them later without hunting through the listing, and without messing around in the heart of the script...
Good luck,
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 06:52 AM
тАО12-18-2002 06:52 AM
Re: Backing up Linux
I used the "&&" construct -- what this does is only allows the command after the "&&" to run if the command before the "&&" exits successfully.
So, if the tar fails, the tape will not rewind and eject from the drive. If, however, the tar command works fine, the tape will be ejected and waiting. This is a nice visual indicator of backup success... :)
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 11:44 PM
тАО12-18-2002 11:44 PM
Re: Backing up Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2002 01:30 AM
тАО12-19-2002 01:30 AM
Re: Backing up Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2002 01:06 PM
тАО12-19-2002 01:06 PM
Re: Backing up Linux
--exclude=proc if I put it as /proc it didn't seem to work. Need to just make it slicker now. I had seen that parameter in the man page but I thought it only worked for files and not directories. Gained knowledge. Once the tar is in place I'll work on getting Amanda figured out. Thanks to all.