GBCopy Console User Guide

Navigate to console directory

Configurations of GBCopy is stored in gbconfig.properties at all

You can change it to do appropriate action.

After change gbconfig.properties file, save it.

If you use Window platform, double-click on file window_start_console.bat
If you use Linux platform, open console and navigate to gbcopy folder, then type: sh linux_start_console.sh
If you use Mac platform (tested on Mac Lion 10.8 or above), open terminal and navigate to gbcopy folder, then type: sh mac_start_console.sh

If you have any issues, please comment on Troubleshooting section or email to me: luongdangdung@misamap.com

Examples about gbconfig.properties

1. Copy file local without checking new file
NETWORK_MODE = LOCAL
SYSTEM_MODE = C_DTD
COPY_SRC_DIR = C:\\source\\sourcesubfolder
COPY_DST_DIR = D:\\destination\\destinationsubfolder
COPY_CHECK_NEWER_FILE = false
COPY_INTERVAL = 0

2. Copy file local with checking new file
do the same steps of section 1, edit:
COPY_CHECK_NEWER_FILE = true

3. Copy file local every 5 seconds
do the same steps of section 2, edit:
COPY_INTERVAL =5000

4. Synchronize file without delete file from destination when delete file from source
NETWORK_MODE = LOCAL
SYSTEM_MODE = S_DTD
SYNC_SRC_DIR = C:\\source\\sourcesubfolder
SYNC_DST_DIR = D:\\destination\\destinationsubfolder
SYNC_DELETE_FILE_ON_DST = false

5. Synchronize file with delete file from destination when delete file from source
do the same steps of section 4, edit:
SYNC_DELETE_FILE_ON_DST = true

6. Backup
NETWORK_MODE = LOCAL
SYSTEM_MODE = B_FTD
BACKUP_SRC_FILES = C:\\source\\sourcesubfolder\\backupfile1.bak, D:\\source\\sourcesubfolder\\backupfile2.dmp
BACKUP_DST_DIR = D:\\destination\\destinationsubfolder
BACKUP_COMPRESS_ENABLE=true
BACKUP_COMPRESS_TYPE = ZIP
BACKUP_DATE_EXTENSION=yyyyMMdd-HHmmss

7. Email Notification
JOB_NAME = name_of_job

EMAIL_NOTIFICATION = true

#smtp server address
SMTP_SERVER_IP = smtp.gmail.com

#include these protocols: SMTP, SMTPS, TLS (using SMTPS for Gmail). (default SMTPS)
SMTP_PROTOCOL = SMTPS

#smtp outgoing port (using port 465 for SMPTS protocol, port 587 for TLS protocol). (default 465)
SMTP_SERVER_PORT = 465

#mail username
SMTP_USERNAME = youremail@gmail.com

#mail password
SMTP_PASSWORD = yourpassword

#from email
MAIL_FROM = youremail@domain.com

#mail to receive
MAIL_TO = yourdestinationemail@yourcompany.com


8. Transfer data over network
GBCopy using GBProtocol to transfer data. Assume we have 2 computers A and B for transfering data.

A acts as data pusher
B acts as data receiver

Data from A will be transfered to B

We will deploy GBCopy on both A and B, see configuration below.

8.1 Transfer files over network (start B and then start A)

configuration of A
NETWORK_MODE = REMOTE
SYSTEM_MODE = PUSH_FILE
LISTEN_PORT_ENABLE = false
PUSH_FILES = C:\\source\\sourcesubfolder\\file1.txt, C:\\source2\\sourcesubfolder2\\file2.png
SERVER_IP = ip_of_server_B
SERVER_MESSAGE_PORT = 8888
SERVER_FILE_PORT = 9999
USERNAME = yourusername
PASSWORD = yourpassword
ISENCRYPT = true

configuration of B
NETWORK_MODE = REMOTE
LISTEN_PORT_ENABLE = true
RECEIVE_DIR = D:\\destination\\destinationsubfolder
SERVER_MESSAGE_PORT = 8888
SERVER_FILE_PORT = 9999
TRUSTED_ADDRESS = *
LOGIN_REQUIRE = false

8.2 Transfer entire folder over network (start B and then start A)
configuration of A
NETWORK_MODE = REMOTE
SYSTEM_MODE = PUSH_DIR
LISTEN_PORT_ENABLE = false
PUSH_DIR =  C:\\source\\sourcesubfolder
SERVER_IP = ip_of_server_B
SERVER_MESSAGE_PORT = 8888
SERVER_FILE_PORT = 9999

configuration of B
NETWORK_MODE = REMOTE
LISTEN_PORT_ENABLE = true
RECEIVE_DIR = D:\\destination\\destinationsubfolder
SERVER_MESSAGE_PORT = 8888
SERVER_FILE_PORT = 9999
TRUSTED_ADDRESS = *
Copyright © by MISAMAP.COM