- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp script help
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
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
тАО05-09-2003 03:14 AM
тАО05-09-2003 03:14 AM
yet again i need help with a script :)
Scenario i have 4 filsystems that i want to be able to backup to another server.
I want to compress the data first and then ftp it from server 1 to server 2 automatically.
i'll use cron to run this script daily.
Thanks in advance
George
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2003 03:33 AM
тАО05-09-2003 03:33 AM
Solutionpl. search in the forums for "ftp script", there are lot of questions on this.
iam giving two of them.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcde591ccb36bd611abdb0090277a778c,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xadc85a3e6e0bd6118ff40090279cd0f9,00.html
Regards
Ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2003 03:42 AM
тАО05-09-2003 03:42 AM
Re: ftp script help
#! /usr/bin/ksh
ftp -n -i <
user username password
bin
put filename
quit
HERE
after you create this script you can add and entry into crontab to run it when you want
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2003 03:43 AM
тАО05-09-2003 03:43 AM
Re: ftp script help
Do you want to backup the files to a disk or a tape device on the remote system ?
In the first case perhaps rcp (remote copy) is better for this task.
Some ideas:
Create a tar file for the filesystem on a temporary location.
Compress the tar file.
Use rcp to copy the compressed file to the remote location (see man page for rcp).
Delete the file from the temporary location.
Of course this needs you have enough space for the temporary file.
If you want to backup to a tape device, fbackup is a better alternative.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2003 03:56 AM
тАО05-09-2003 03:56 AM
Re: ftp script help
How's things ?
I would use rdist
http://xray.chm.bris.ac.uk:8000/labstuff/rdist.html
hth
steve