HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tar backup - need ur help
Operating System - HP-UX
1833006
Members
3069
Online
110048
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-13-2007 02:18 AM
12-13-2007 02:18 AM
Hi all,
I need to take tar backup of vg00 only. Command in my mind is :
tar cvm -C / -C /stand -C /var -C /var/spool/lp -C /var/adm/sw -C /var/adm/crash -C /usr -C /tmp -C /opt -C /home
But problem looks here is when I say -C / it will include whole directory structure including application directories. Is there any way to have selective directory selection like graph file in ignite??? Heard about GNU tar too. I hope its not there on server.
I want strictly into tar. Not interested in cpio, ignite.
I need to take tar backup of vg00 only. Command in my mind is :
tar cvm -C / -C /stand -C /var -C /var/spool/lp -C /var/adm/sw -C /var/adm/crash -C /usr -C /tmp -C /opt -C /home
But problem looks here is when I say -C / it will include whole directory structure including application directories. Is there any way to have selective directory selection like graph file in ignite??? Heard about GNU tar too. I hope its not there on server.
I want strictly into tar. Not interested in cpio, ignite.
Will it remain a personal, if I broadcast it here!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 02:54 AM
12-13-2007 02:54 AM
Re: tar backup - need ur help
You need to toss tar and use pax(1). That allows you to read stdin and use find -xdev.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1182133$
find / /stand /var /var/spool/lp /var/adm/sw /var/adm/crash /usr \
/tmp /opt /home -xdev | pax -w -v -f /dev/rmt/0m
Hmm. That "/" may still get too much. You may have to use -d in pax so it only does the listed directories and files.
Note /var will get the other two /var/X if on same filesystem. You of course can put an exclude filter in the pipe.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1182133$
find / /stand /var /var/spool/lp /var/adm/sw /var/adm/crash /usr \
/tmp /opt /home -xdev | pax -w -v -f /dev/rmt/0m
Hmm. That "/" may still get too much. You may have to use -d in pax so it only does the listed directories and files.
Note /var will get the other two /var/X if on same filesystem. You of course can put an exclude filter in the pipe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 02:56 AM
12-13-2007 02:56 AM
Solution
Unless you intend to make one big mess, I
don't think that "-C" does what you think it
does.
> Heard about GNU tar too. I hope its not
> there on server.
You hope it's _not_ there? Why? If nothing
else, the documentation is fun to read, and
educational:
http://www.gnu.org/software/tar/manual/
http://www.gnu.org/software/tar/manual/tar.html
If you can use "find" (or something) to
produce a complete list of names to add to
the archive, then "--files-from=file-name"
("-T file-name") with "--no-recursion" could
be useful. Also, "--one-file-system" could
be handy.
don't think that "-C" does what you think it
does.
> Heard about GNU tar too. I hope its not
> there on server.
You hope it's _not_ there? Why? If nothing
else, the documentation is fun to read, and
educational:
http://www.gnu.org/software/tar/manual/
http://www.gnu.org/software/tar/manual/tar.html
If you can use "find" (or something) to
produce a complete list of names to add to
the archive, then "--files-from=file-name"
("-T file-name") with "--no-recursion" could
be useful. Also, "--one-file-system" could
be handy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 04:17 AM
12-13-2007 04:17 AM
Re: tar backup - need ur help
Thanks you both.
Will go with -T option
Will go with -T option
Will it remain a personal, if I broadcast it here!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP