1.PSCP command Introduction, only need to copy this file to the system directory corresponding to the System32, you can check the description of tearful, as shown below
PuTTY Secure Copy Client
Release 0.67
USAGE:PSCP [Options] [[Email Protected]]host:source target
PSCP [options] source [source ...] [[Email Protected]]host:target
PSCP [Options]-ls [[Email Protected]]host:filespec
Options:
-V Print version information and exit
-PGPFP print PGP key fingerprints and exit
-P Preserve File attributes
-Q Quiet, don ' t show statistics
-R Copy Directories recursively
-V Show verbose messages
-load sessname load settings from saved session
-p Port Connect to specified port
-l user connect with specified username
-PW PASSW Login with specified password
-1-2 force use of particular SSH protocol version
-4-6 force use of IPv4 or IPV6
-C Enable compression
-I key private key file for user authentication
-noagent Disable use of pageant
-agent Enable use of pageant
-hostkey aa:bb:cc: ...
Manually specify a host key (may be repeated)
-batch Disable all interactive prompts
-unsafe allow Server-side wildcards (dangerous)
-sftp Force use of SFTP protocol
-SCP Force use of SCP protocol
-sshlog file
-sshrawlog file
Log protocol details to a file
2. Examples
---do four cmd files, three in the C disk directory, only need to double-click Task.cmd, because the service itself has a backup job,
--in order to back up the latest copy of the data, the backup job is done separately, the backup file name is the same
---task.cmd
Schtasks/delete/tn "Autosave1"/F
Schtasks/delete/tn "Autosave2"/F
Schtasks/delete/tn "Autosave3"/F
SCHTASKS/CREATE/SC monthly/d 13/st 01:05:00/tn "autosave1"/tr c:\auto_save11.cmd
SCHTASKS/CREATE/SC monthly/d 13/st 02:05:00/tn "Autosave2"/tr c:\auto_save12.cmd
SCHTASKS/CREATE/SC monthly/d 13/st 02:50:00/tn "Autosave3"/tr c:\auto_save13.cmd
--auto_save11.cmd authentication server data, because it is a dual machine, can only prepare two copies of data, copy of the Linux backup data to the emergency server-now used, can be changed to drift address, because the current use, there is no change
Pscp-v-q-batch-l ROOT-PW pwdroot 192.6.1.21:/home/oralcedata/backup.tgz e:\dbbak\21
Pscp-v-q-batch-l ROOT-PW pwdroot 192.6.1.22:/home/oracle/data/backup.tgz e:\dbbak\22
--auto_save12.cmd copying data from another server to a contingency server
@title is backing up do not close
@echo. The file is larger, the time is longer, please operate cautiously
@copy Z:\data.dump D:\dbbak
--auto_save13.cmd Copy the backup of the emergency server to the mobile hard disk, emergency servers, mobile hard disk two data plus the database of three data
@title is backing up do not close the @echo. The file is larger, the time is longer, please operate cautiously
@xcopy/y/S e:\dbbak\* f:\ Latest Backup
Offsite Backup--windows and Linux