- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tar command question
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
Forums
Discussions
Discussions
Discussions
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
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
04-20-2006 02:01 AM
04-20-2006 02:01 AM
OK, I am getting confused with it, here is the situation.
I have 2 directories:
/oracle and /oracle_temp
I need to move the contents of /oracle to /oracle_temp, it's about 12GB. I just created the oracle_temp LV and mounted it.
How do I run the tar command to copy all the files? Or do I use find and cpio?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:06 AM
04-20-2006 02:06 AM
Re: tar command question
find source_dir -depth -print | cpio -pcdumv newdir
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:06 AM
04-20-2006 02:06 AM
Re: tar command question
I'd use the mv or cp command
mv /oracle/* /oracle_temp
cp -R /oracle/* /oracle_temp
The database must be down if this includes database data files.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:06 AM
04-20-2006 02:06 AM
Re: tar command question
# find /oracle | cpio -pcmudv /oracle_temp
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:07 AM
04-20-2006 02:07 AM
Re: tar command question
I'd use the mv or cp command
mv /oracle/* /oracle_temp
cp -R /oracle/* /oracle_temp
The database must be down if this includes database data files.
If the lvs are on two systems scp -rp will work well.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:08 AM
04-20-2006 02:08 AM
Re: tar command question
cd /oracle
find . â xdev â depth â print|cpio â pmd /oracle_temp
Unless you've got it backed up with Data Protector, in which case I'd use that.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:14 AM
04-20-2006 02:14 AM
Re: tar command question
# find /oracle | cpio -pcmudv /oracle_temp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:15 AM
04-20-2006 02:15 AM
Re: tar command question
cd /oracle
find . -xdev -depth -print|cpio -pmd /oracle_temp
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:28 AM
04-20-2006 02:28 AM
Re: tar command question
the 9ias director. And the space is fine.
# find /oracle | cpio -pcmudv /oracle_temp
# ll /oracle
total 6
drwxr-xr-x 7 oracle dba 1024 Jul 14 2005 9ias
drwxr-xr-x 2 root root 96 Jun 1 2005 lost+found
drwxr-xr-x 2 oracle dba 2048 Apr 18 13:12 v10
ll /oracle_temp
total 0
drwxr-xr-x 2 root root 96 Apr 20 09:52 lost+found
drwxr-xr-x 5 oracle dba 96 Apr 20 10:24 oracle
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:33 AM
04-20-2006 02:33 AM
Re: tar command question
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 03:03 AM
04-20-2006 03:03 AM
Re: tar command question
find . -xdev -depth -print|cpio -pmd /oracle_temp