- Joined
- Nov 16, 2008
- Messages
- 177
- Reaction score
- 0
Here is a short batch file script you can schedule using Task Scheduler to backup your 3CX using the 3CX Backup Utility. This script will generate a new backup file eachtime it is run, by virtue of the %random% value that ensures the file name is unique. Note, the random function is basic, but it'll suffice for my requirements, and that is daily snapshot backups, particularly as I am editing the configuration on a regularly basis as I learn more about the system and implement features and soforth.
Backup.bat - Sample Code for automated scheduled backups to generate unique filename and not overwrite existing backup
I would dump some more screenshots in, but it's late, and I trust everyone is accustomed to setting up a task in task scheduler and creating a .bat file in notepad.
Hope that's useful. Lewis
Backup.bat - Sample Code for automated scheduled backups to generate unique filename and not overwrite existing backup
Code:
cd C:\Program Files\3CX PhoneSystem\Bin
3CXBackup backup C:\3CX_Backup\3cxbackup%random%.zip /call history /prompts /recordings /exit
I would dump some more screenshots in, but it's late, and I trust everyone is accustomed to setting up a task in task scheduler and creating a .bat file in notepad.
Hope that's useful. Lewis