- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tar a directory
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
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
тАО03-03-2006 06:46 AM
тАО03-03-2006 06:46 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2006 06:49 AM
тАО03-03-2006 06:49 AM
SolutionArchive all files and directories in directory my_project in the current directory to a file called my_project.TAR, also in the current directory:
tar -cvf my_project.TAR my_project
Then you can just ftp my_project.TAR and extract with tar -xvf.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2006 06:52 AM
тАО03-03-2006 06:52 AM
Re: Tar a directory
tar -cvf dir.tar /path/dir
then
gzip dir.tar
then ftp the dir.tar.gz file
then on the other system
gunxip dir.tar.gz
and
tar -xvf dir.tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2006 06:53 AM
тАО03-03-2006 06:53 AM
Re: Tar a directory
If you then want to gzip the myproject.TAR file to hopefully make the FTP even faster:
# gzip myproject.TAR
Then you FTP myproject.TAR.gz to your remote machine and;
# cd /somedir
# gunzip myproject.TAR.gz
# tar -xvf myproject.TAR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2006 06:54 AM
тАО03-03-2006 06:54 AM
Re: Tar a directory
Pete is spot on with the answer, anyway if resulting ".tar" turn's out to be huge one,u could perform compression aswell on the tar file before ftp'ing...
just do this after tar'ing..
gzip my_project.TAR
this will create a compressed file : my_project.TAR.gz
After ftp'ing to the target machine..uncompress it before extracting with "tar -xvf"..
gunzip my_project.TAR.gz
regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2006 06:57 AM
тАО03-03-2006 06:57 AM
Re: Tar a directory
I guess, a environment like "HP service desk" application would have reduced the conflicts with time ... ;) Just kidding...