- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with remote backup
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
10-09-2002 08:42 AM
10-09-2002 08:42 AM
Problem with remote backup
I'm getting the following error with I use the following script:
Tar: end of tape
Tar: to continue, enter device/file name when ready or null string to quit.
This is the script I'm using:
----------Begin---------
#!/bin/sh
MAILBODY=/tmp/body
/usr/bin/date > $MAILBODY
/usr/bin/ftp -i -n ftphost << EOF >> $MAILBODY 2>>$MAILBODY
user anonymous pass anon
bin
put "| tar cvf - `find /d00 -name '*.Z'`" d00.tar
EOF
/usr/bin/cat $MAILBODY | /usr/bin/mailx -s "PRD Daily Backup" sysadmin@oag-bvg.gc.ca
---------END-----------
Does anyone know how to fix it?
The commands in the script work interactively.
They fail when within the script however.
James Phillips
phillijs@oag-bvg.gc.ca
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 08:45 AM
10-09-2002 08:45 AM
Re: Problem with remote backup
what is the size of the archive and the capacity of the tape / tape drive?
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 08:49 AM
10-09-2002 08:49 AM
Re: Problem with remote backup
looking at it again...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 09:08 AM
10-09-2002 09:08 AM
Re: Problem with remote backup
If you want to do the tar on the file then I think you do not need the "-" sign after the cvf.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 10:00 AM
10-09-2002 10:00 AM
Re: Problem with remote backup
The "-" is provided to send the tar to stdout.
The output is piped to 'put' and d00.tar is the name of the remote file.
When I run this script from the prompt it works. However, it doesn't work when launched from cron.
Any help/advice would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 10:21 AM
10-09-2002 10:21 AM
Re: Problem with remote backup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 11:26 AM
10-09-2002 11:26 AM
Re: Problem with remote backup
I haven't got that far. At the unix prompt, when I run the script it doesn't work. However, when I cut and paste line by line the commands into a shell, it works.
Could it be because of terminal settings?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 12:36 PM
10-09-2002 12:36 PM
Re: Problem with remote backup
put "|tar cvf - `find /etc -name hosts`" d00.tar
fails with your error
if I change the directory to say /tmp and pick a different file, the script works. If I execute the job line by line on the command line, it also works. I don't have a solid answer yet, but it looks to be user/permission based?
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 01:09 PM
10-09-2002 01:09 PM
Re: Problem with remote backup
Ted