- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Backing up certain areas
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
тАО11-17-2010 09:23 AM
тАО11-17-2010 09:23 AM
Backing up certain areas
Hope you can help.......
I want to run a backup that only backs up the root folder but not the data on certain mount points - not all mount points - only certain ones. Is there a "find" command that can be done where you can exclude listing specified folders? The find command would then be passed to a cpio command. Is there a tar command that would also do it.
Any suggestions gratefully received.
Kind Regards - Mark P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2010 09:50 AM
тАО11-17-2010 09:50 AM
Re: Backing up certain areas
If its the root directory that you want to backup ('/') but only selected mountpoints beneath, you could specify the '/' directory and the specific mountpoints you want:
# find / /usr /opt -xdev -print
This would find objects in '/' (including non-mountpoint directories like '/etc' and '/sbin') together with '/usr' and '/opt'.
The '-xdev' option tells 'find' not to cross mountpoints.
Depending on your requirements, you might also specify '-path
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2010 02:35 PM
тАО11-17-2010 02:35 PM
Re: Backing up certain areas
tar cvf testing.tar $(cat /home/user1/complete_path.txt)
where complete_path.txt contains the absolute path.You need to be careful while restoring this tar ball.
Regards,
DF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 02:37 AM
тАО11-18-2010 02:37 AM
Re: Backing up certain areas
The best way to do this is to create a graph file using and then fbackup files whatever you want. You can exclude /tmp /cdrom etc. and include /var / within the graph file and accordingly do incremental and diffrential backups.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 10:23 AM
тАО11-18-2010 10:23 AM
Re: Backing up certain areas
>You need to be careful while restoring this tar ball.
This is where pax(1) shines:
pax -wv -f testing.tar < /home/user1/complete_path.txt
And pax's -s option can be used to change the absolute path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 11:02 AM
тАО11-18-2010 11:02 AM
Re: Backing up certain areas
I've used fbackup/frecover in the past. For an example:
fbackup -v -i /opt/oracle -e /opt/oracle/staging/forms/patch -f- | (cd /backup; frecover -Xrf-)
(moves everything from /opt/oracle but excludes /opt/oracle/staging/forms/patch and copied to /backup)
You can do a man of fbackup or a search through the forums. Here is one such thread:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1427976
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 11:31 AM
тАО11-18-2010 11:31 AM
Re: Backing up certain areas
find / /opt /usr /var -xdev -depth | cpio -oBdvxm > /dev/rmt/
or to another directory
find / /opt /usr /var -xdev -depth | cpio -pdmvux /
or to a cpio file
find / /opt /usr /var -xdev -depth | cpio pio -oBdvxm > myfile.cpio
The "x" options in there are to get device files, if you have any.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2010 03:10 AM
тАО11-19-2010 03:10 AM