1.脚本如下

ftp -n<<!

open x.x.x.x

###x.x.x.x为ftp地址

user username password

###username为ftp用户名 password为用户名密码

binary

###binary为二进制传输

cd /report

###切换到ftp目录

lcd /home/oracle/report/export

###切换到本地linux目录

prompt

put report_data_`date +%Y%m%d`.dmp

###上传指定文件

put expdp_`date +%Y%m%d`.log

put `date +%Y%m%d`_scpflagfile

put crontab_78_flag.txt

close

bye

!

相关文章:

  • 2021-11-14
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2021-11-17
  • 2022-12-23
  • 2021-08-25
  • 2021-09-10
相关资源
相似解决方案