froh
15 years agoLevel 2
How can i create full and incremental backups with bemcmd
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.
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