- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- use ftp to move file
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
use ftp to move file
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-26-2009 06:05 PM
04-26-2009 06:05 PM
use ftp to move file
use ftp to move file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-26-2009 06:55 PM
04-26-2009 06:55 PM
Re: use ftp to move file
Re: use ftp to move file
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-26-2009 07:11 PM
04-26-2009 07:11 PM
Re: use ftp to move file
Re: use ftp to move file
I read ? but not found move , mv command , the rename is not change the file name , I really want to move the file to backup directory in remote server not just rename , can ftp do it ? thx
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-26-2009 09:32 PM
04-26-2009 09:32 PM
Re: use ftp to move file
Re: use ftp to move file
I remember sftp have options to rename the file from old path to newpath
Shankar
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-26-2009 10:10 PM
04-26-2009 10:10 PM
Re: use ftp to move file
Re: use ftp to move file
You can used cd and lcd
cd for remote directiory and
lcd for local directiory.
then move the desire file to remote location and delete the file with delete command.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-26-2009 11:14 PM
04-26-2009 11:14 PM
Re: use ftp to move file
Re: use ftp to move file
you said "then move the ..." , how to move , can advise what command that I can use ? thx
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-26-2009 11:21 PM
04-26-2009 11:21 PM
Re: use ftp to move file
Re: use ftp to move file
Fortunately move command is not available on ftp. Indeed rename is doing the same function. I assume that you are getting a file called test.txt from remote server through ftp and want to move to backup directory after fetching the file.
You just need to add this lines in your script after copying the files.
#--------------------------------------------
# Move and Rename the file on remote server # after copying
#--------------------------------------------
ftp <<**
open abc.company.com
rename test.txt /tmp/test.txt.`date +'%d%b%y`bye
**
This will remove the source file and move to /tmp directory as test.txt.27Apr09
Instead of /tmp, I would suggest you to create a backup directory on user home directory(or somewhere) and move over there.
rename test.txt ./backup/test.txt.`date +'%d%b%y`
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-26-2009 11:24 PM
04-26-2009 11:24 PM
Re: use ftp to move file
Re: use ftp to move file
Typo error on my previous post. Script should be like this.
#--------------------------------------------
# Move and Rename the file on remote server after copying
#--------------------------------------------
ftp <<**
open abc.company.com
rename test.txt /tmp/test.txt.`date +'%d%b%y`
bye
**
Sincere apolosize for the mistake.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-27-2009 12:07 AM
04-27-2009 12:07 AM
Re: use ftp to move file
Re: use ftp to move file
I tried it , but pop error
350 Ready for RNTO.
550 Rename failed.
can advise what is wrong ? thx
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-27-2009 12:10 AM
04-27-2009 12:10 AM
Re: use ftp to move file
Re: use ftp to move file
this is permission problem , i got it already , thx for your help .
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP