Contents of RAR-FTP.bat
1 2 3 4 5 6 7 8 9 10 11 12 13 |
echo d:dbbackup -- compresses this directory into d:ftp current_date.rar cd c: cd program fileswinrar rar.exe a -acv d:ftpny-%date%.rar d:dbbackup echo ftp.txt -- to run the ftp commands ftp -s:d:ftpftp.txt |
Note: Add the following to log the batch file operations
1 2 3 4 5 6 7 |
@ECHO ON"@ECHO ON</a> call :Logit>>batch_%date%.log 2>&1 exit /b 0 :Logit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Contents of ftp.txt open ftpserver_IP_address ftpusername password cd directory binary put name_of_file_and_path_of_file_to_be_sent by |
To send a local file to an FTP server use put, to retrieve a file from an FTP server use get, as shown in the previous syntax by adding the binary parameter.
Using RMAN for...
12 March 2019