Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pre and Post command documentation?
#1
I am looking for a new backup software application and I am evaluating Hasleo Backup Suite to see if it meets my needs. I'm new to this forum and this is my first post, as I am on a "discovery" mission.

My current setup runs the backup program from the command line. There are tasks I need to run prior to the backup running, and tasks I need to run after the backup runs.  I see that the command line utility, BackupCmdUI.exe, is only available with the Professional version.  As I have 4 computers (home use) that I need backup software for, the cost for all four is a bit too high for me.  I don't see a multi/family discount for Professional, so I have experimenting with the Pre-command and Post-command options.  

Is there any documentation for using the pre-command and post-command options?  I looked and did not see any in the online documentation.  Specifically what I am looking for is if there is a way to pass the current backup run backup type as a parameter to the scripts.  For example, if the backup job is currently running a FILE backup and the backup was INCremental, then I was hoping I could pass something like %BackupType% %BackupScope%, or $BackupType $BackupScope to the scripts to know if the current job is a DATA backup vs. SYSTEM (image) backup, and if the backup job is INC vs DIF vs FUL.  
Any chance this exists in the pre/post commands, the ability to pass backup type information to your scripts?
TIA
-v/s-
Reply
#2
@viscus_sweats,

Welcome to the Hasleo Forums.  Your questions are beyond my knowledge level, but our Forum Administrator and other Moderators are very knowledgeable about the command line intricacies of the Hasleo Backup Suite versions.  You will receive a reply within 12 hours.

Once again, welcome to Hasleo.

Regards,
Phil
Reply
#3
@viscus_sweats   It should be possible, with some additional scripting, add a precursor script to the Pre-command and Post-command scripts.

Each Task (backup job) has its own set of Pre and Post commands, so the scripts associated with each Task will already know if a DATA or SYSTEM backup is being performed. Your Pre scripts can be tailored as necessary for this.

Here is a sample script, a .txt file that should be changed to .bat, that can determine the type of the latest backup. The produced flag could then be used with your scripts.


.txt   BackupType.txt (Size: 1.36 KB / Downloads: 0)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)