- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file system
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-01-2002 01:23 PM
04-01-2002 01:23 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2002 01:28 PM
04-01-2002 01:28 PM
SolutionSimply cd to the TOP of that FS & issue the following:
#tar cvf /tmp/fsname.tar ./*.*
Note you must NOT create the tar file in the same FS - it MUST be outside the FS you are tarring. So care must be given as to where you tar to - make sure you have sufficient space. The FS you create the tar file in must support > 2Gb files IF the tar file will reach that size. The *.* is needed to tar files that contain "."s
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2002 01:28 PM
04-01-2002 01:28 PM
Re: file system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2002 01:30 PM
04-01-2002 01:30 PM
Re: file system
#cd /
#tar cvf /dev/rmt/??? data/
And it will create tape with all home directorys.
then at another system.
#cd /
#tar xvf /dev/rmt/??? and it will put data directory there.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2002 01:30 PM
04-01-2002 01:30 PM
Re: file system
PUSH method
-----------
# (find
PULL method
-----------
# remsh
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2002 01:33 PM
04-01-2002 01:33 PM
Re: file system
On the source machine, run these ..
# cd /source_dir
# tar cvf - . | remsh target_machine '(cd /dest_dir; tar -xvf -)'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2002 01:34 PM
04-01-2002 01:34 PM
Re: file system
Say you want to tar a filesystem mounted at /mount_point, try this,
cd /
tar cvf /dir1/file_name.tar mount_point
This will create an archive at /dir1 and the archive name will be file_name.tar . The archive will have everything under /mount_point without the leading edges, to restore it on the same system,
cd /
tar xvf /dir1/file_name.tar
Do a "man tar" for more help.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2002 02:53 PM
04-01-2002 02:53 PM
Re: file system
Since you have asked for the syntax of scp I assume you have ssh configured between the two boxes and root can ssh between these without password, in that case you don't need a tar ball you could do:
For example if you want everything under /apps to be copied over to the remote host and the remote host also has a similar file system (/apps) then
cd /apps (on current host)
scp -p -r * remotehost:/apps/
This should copy everything under /apps on current host over the network to remotehost. The status will be printed on stdout. (-p preservs all permissions and -r recursively copies all directories/subdirectories)
If you do not have ssh configured then I would use SK Chan's method (works well)
# cd /source_dir
# tar cvf - . | remsh target_machine '(cd /dest_dir; tar -xvf -)'
Hope this helps.
Thanks,
Shabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2002 06:07 AM
04-02-2002 06:07 AM
Re: file system
try this.
go to one step above the FS u want to tar. issue the following command
#tar cvf
of if u want to copy on to tape
#tar cvf /dev/rmt/0m
regds
ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2002 06:09 AM
04-02-2002 06:09 AM
Re: file system
fbackup -0i / -f /dev/rmt/0mn
Frank