- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using tar to backup and restore to remote server
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
тАО06-28-2002 04:15 AM
тАО06-28-2002 04:15 AM
Using tar to backup and restore to remote server
Hi All,
I am trying to backup a filesystem lets say called /files and want to use tar to do this then restore it to a remote server under /files. I want to do this all in one command from the local server ... can this be done. This is the command I used -
cd /files
tar cvf - . | (remsh remotesvr cd /files; tar xvf -)
I got a directory checksum error. Trying to do this command from memory, and it aint good :)
Thanks
Trev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2002 04:30 AM
тАО06-28-2002 04:30 AM
Re: Using tar to backup and restore to remote server
tar cvf - . | (remsh remotesvr "cd /files;tar xvf -")
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2002 04:34 AM
тАО06-28-2002 04:34 AM
Re: Using tar to backup and restore to remote server
Personally, I would NFS mount the other server and not worry about the remsh.
tar cvf - $OLD_DIR_MOUNT | ( cd $NEW_MOUNT_POINT ; tar xvf - )
That will preserve permissions and links.
Good Luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2002 04:42 AM
тАО06-28-2002 04:42 AM
Re: Using tar to backup and restore to remote server
cd /backupdirectory
# tar cvf - .| remsh polnec "(cd /otherdirectory ; tar xvf - )"
THanks
G Manikandan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2002 03:49 AM
тАО07-01-2002 03:49 AM
Re: Using tar to backup and restore to remote server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2002 04:04 AM
тАО07-01-2002 04:04 AM
Re: Using tar to backup and restore to remote server
# tar cvf - .| remsh remotesvr "(cd /otherdirectory ; tar xvf - )"
should do the job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2002 04:08 AM
тАО07-01-2002 04:08 AM
Re: Using tar to backup and restore to remote server
`tar' via network.
Write a `tar' tape on a remote computer that owns a DAT/DDS drive.
cd /relative_path
tar cvf - . | remsh name -l user "cat - | dd of=/dev/rmt/0m bs=10k"
Restore a `tar' tape from a remote computer that owns a DAT/DDS drive.
cd /relative_path
remsh name -l user dd if=/dev/rmt/0m bs=10k | tar xvf -
Please note that FBACKUP IS BETTER.
Remote backup on a local DAT/DSS tape drive.
In case you would like to make a backup from a remote system to a local
DAT/DSS tape drive, you can use this comand:
remsh remote_name "/etc/fbackup -f local_name:/dev/rmt/0m -i . -0 -v"
remote_name= system that runs the backup.
local_name = system that owns the DAT/DSS drive.
The options can be set at discretion.
If you are logged-in on the other system, then:
/etc/fbackup -f remote_name:/dev/rmt/0m -i . -0 -v
Restore of backup over network.
Restore from a remote DAT/DDS drive
/etc/frecover -xi/directory -f remote_name:/dev/rmt/0m
Remote restore with local DAT/DDS drive
remsh remote_name " /etc/frecover -xi/directory -f local_name:/dev/rmt/0m"
Steve Steel