I have a macro called
backup that automatically backs up my important files and folders. You can do this by creating a macro and using the CMD plugin. If you haven't downloaded the CMD plugin yet, visit
www.keybreeze.com/plugins to do so.
Let's say your backup folder is D:\backup, and you want to backup your Keybreeze folder (C:\Program Files\Keybreeze). So basically, you want to copy everything in C:\Program Files\Keybreeze to D:\Backup\Keybreeze
To start off, you first want to delete the old backup data. Why? Because your new backup might have fewer files than the old backup, and you don't want extra files lying around. Those extra files can cause problems with programs -- In Keybreeze, those old files could be old notes, which would cause both old notes and new notes to pop up the next time you load Keybreeze -- not good.
So the first command in the macro editor should be:
<Keybreeze cmd,/c rmdir "d:\backup\keybreeze" /s /q> This command will delete all the subdirectories and files within d:\backup\keybreeze. MAKE SURE YOU SPECIFY THE RIGHT BACKUP FOLDER.
DO NOT TYPE c:\program files\keybreezeNow you will want to set a delay for at least 5 seconds. This will give the command prompt time to perform the task. You could also use the <waitforuser> command instead of setting a delay.
Now you want to type the command that will actually copy the folder to the backup folder:
<Keybreeze cmd,xcopy "c:\program files\keybreeze" "d:\backup\keybreeze" /c /i /y /s /rThe final macro should look something like this:
<Keybreeze cmd,/c rmdir "d:\backup\keybreeze" /s /q><delay 5000><Keybreeze cmd,xcopy "c:\program files\keybreeze" "d:\backup\keybreeze" /c /i /y /s /r>This will delete the backup folder first, wait for 5 seconds, and then copy all of the files and subdirectories in C:\program files\keybreeze to D:\backup\keybreeze.
You can use this macro example to backup any files or folders on your computer.