Tuesday October 29, 2024

       
      SteelArrow Basics
      SteelArrow Tags
  SteelArrow Functions
  SteelArrow Objects
  Advanced Topics
  WAS Overview
   
   
       
      Overview
  Code Samples
  Site Search
   
   
   


Get SteelArrow!     
  <SAMIRROR/>    
 
 
Secure Tag
Return to Tag List
 
The MIRROR tag can be used to create a remote mirror on a local machine, or a remote mirror on a remote machine. The tag utilizes the FTP protocol, and support passive as well as non-passive modes.
 
Attributes:
RECURSE recurse specified directory; "yes" or "no" (default is "yes")
LOGFILE file to store log information into (relative to script)
SERVER server to connect to
PORT server port (default is 21)
MASTER "remote" or "local" (specifies which is master copy)
PASSIVE passive FTP mode; "yes" or "no" (default is "no")
USERNAME FTP username
PASSWORD FTP password
LOCAL local path (absolute)
REMOTE remote path (absolute from root)

 
The following is an example of MIRROR;
 
<!--- SAMIRROR throws an FTP exception on error --->
<SATRY>
<SAMIRROR SERVER="192.168.2.1" USERNAME="backup" PASSWORD="backup"
       MASTER="local" LOCAL="E:\Group\Developments & Projects"
       REMOTE="/StaffExternal/Projects" LOGFILE="Projects_ftpLog.data">


<!--- Send log file to specified email address --->
<SAREADFILE FILE="Projects_ftpLog.data" NAME=data>
<SAMAIL TO="admin@tomahawktech.com" FROM="admin@tomahawktech.com"
      SUBJECT="Projects Transfer">
#data#
</SAMAIL>
</SATRY>

<!--- Error was thrown; send email notification --->
<SACATCH TYPE="all">
   <SAMAIL TO="admin@tomahawktech.com" FROM="admin@tomahawktech.com"
      SUBJECT="Transfer ERROR" HTML="yes">
   <HTML><BODY>#ERROR[]#</BODY></HTML>
   </SAMAIL>
</SACATCH>





Copyright © 1998-2004 Tomahawk Technologies Inc.
Privacy Policy