Hi,
Backing up a share will only only work on a storage node or a networker server.
Use the following steps (Assuming windows storage node).
1. Setup a client savegroup using the storage node as a client.
2. Saveset as: \\filername\sharename
3. On the remote tab in the backup command field insert eg. saveshare.cmd (name of your command file. NOTE: has to start with save or nsr.
4. In the executable path field insert the full path of the networker bin folder on the storage node.
5. You may have to fill in the fields for username & password (depends on your setup)
6. Create the command file as shown below and save in the bin folder on the storage node (eg saveshare.cmd)
Command script to backup a share on a storage node.
----------------------------------------------
Code:
@ECHO OFF
SETLOCAL
ECHO + START Filer Backup BATCH FILE
ECHO + Delete MAPPED Drive
net use /delete u: > nul 2>&1
ECHO + MAPPING NetAPP Drive U:
net use u: \\filername\sharename
REM This is the commands that take incoming arguments from
REM the savegrp command and handle them in a special manner
REM to overcome batch file limitations:
REM PARSE ALL INCOMING ARGUMENTS
REM and pass single argument in case
REM more than 10 arguments are passed to this file
REM (ie %0-%9 is not enough).
ECHO === NetWorker SAVE SET COMMAND ===
SHIFT
SET arg=%0
:loop
SHIFT
IF %0.==. GOTO save
SET arg=%arg% %0
GOTO loop
REM These are the save commands that run the required
REM NetWorker backup commands.
:save
D:\NTAPPS\Legato\nsr\bin\save.exe %arg%
ECHO + NetWorker POST_BACKUP COMMAND
net use /delete u: > nul 2>&1
ECHO + END OF BATCH FILE
ENDLOCAL
--------------------------------------------
Hope this helps.
Cheers.
![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)