cancel
Showing results for 
Search instead for 
Did you mean: 

How can i create full and incremental backups with bemcmd

froh
Level 2

Hi, i need to automate these tasks in Backupexec 2010 on Windows server 2003

  • Install backupexec. OK
  • Configure a weekly full backup of selected folders to removable USB media. OK exept USB disks has to be manually added to media library.
  • Configure daily incrementral backup of the same folders. Failed.

I have searched high and low for information on this subject, and the closest i have come is this forum question.

https://www-secure.symantec.com/connect/forums/how-create-incremental-and-differential-backups-using...

I have discovered that i need to create a policy to be able to add the incremental job, because it has to use a full backup job as reference, but my attempts have so far been unsucessfull.

Output of bemcmd.exe:


C:\Program Files\Symantec\Backup Exec>bemcmd.exe -o260 -v -fBackup_policy.txt
 
Backup Exec Command Line Applet version 13.0.4164.
Copyright (c) 2010 Symantec Corporation.  All rights reserved.
 
Connecting to local media server...
Connected.
ERROR: The template rule is invalid: Rule '1'.
Disconnecting from server...
Disconnected.

RETURN VALUE: -1 Backup_policy.txt:

[General]
NAME="KUAS Policy"
 
[Template]
NAME1=Full
TYPE1=0
FILE1=Full_Backup_Template.txt
 
NAME2=Incremental
TYPE2=0
FILE2=Incremental_Backup_Template.txt
 
 
[Rules]
RULE_FIRST_TEMPLATE1=Full
RULE_SECOND_TEMPLATE1=Incremental
RULE_TYPE1=0
 
Full_Backup_Template.txt:
[Backup_Options]
BK_METHOD=0
BK_SET_NAME="Full Backup"
 
[Miscellaneous]
COMMAND_AUTO_CANCEL_TIME=1
 
[Schedule]
TIME=02:00:00
SCHED_DAYSOFWEEK=1/1,1/2,1/3,1/4,1/5
SCHED_ANCHOR=01/01/2011
SCHED_STARTTIME=02:00:00
SCHED_ENDTIME=04:00:00
 
[Media Options]
MEDIA_SET="Keep Data for 4 Weeks"
APPEND=1
APPEND_NO_OVERWRITE=0
COMPRESSION_TYPE=1 
VERIFY=1
Incremental_Backup_Template.txt
[Backup_Options]
BK_METHOD=3
BK_SET_NAME="Incremental Backup"
 
[Miscellaneous]
COMMAND_AUTO_CANCEL_TIME=1
 
[Schedule]
SCHED_STARTTIME=02:00:00
SCHED_ENDTIME=04:00:00
SCHED_ANCHOR=01/01/2011
TIME=02:00:00
DAYS=MON,TUES,WED,THU,FRI,SAT
 
[Media Options]
MEDIA_SET="Keep Data for 4 Weeks"
APPEND=1
APPEND_NO_OVERWRITE=0
COMPRESSION_TYPE=1 
VERIFY=1 
 

 

2 REPLIES 2

Ken_Putnam
Level 6

Any particular reason you want to do this via command line rather than via GUI?  You can create everything you need in the GUI and then execute them via BEMCMD if you really want to

I have discovered that i need to create a policy to be able to add the incremental job, because it has to use a full backup job as reference, but my attempts have so far been unsucessfull.

??  If you create the Full and INCR using the same selection list, you can run them completely separately
 

Also, if you are not already at 2010R2, I HIGHLY recommend you upgrade.  Handling of external removeable drives is greatly enahnced

froh
Level 2

We automate the complete installation of servers because it gives consistency etween installs, and because micro managing is not cost effective.

Can you please show how to create two backup jobs using the same selection list with bemcmd?

I have R2 wich among other things handles changing drive letter.