- Joined
- Jan 27, 2019
- Messages
- 56
- Reaction score
- 3
Hi All,
I have a client that wants to run backups from the command line (separate from the ones scheduled in 3CX itself).
This is a very standard setup on the current 3CX Debian ISO.
We have tested and given them the commands to do this from the Debian Command Line:
The client is happy to be able to backup 3CX like the above, but they also require the ability to periodically create an image of the server.
Their preference is to use either dd or ddrescue.
Their thinking is that, if the server 'dies' then they would replace the hardware, restore the dd image, then restore the 3CX backup, all without requiring any access to the 3CX console (they are very comfortable running servers, but prefer not to have to get into any specific applications - such as 3CX - if they can avoid it).
Once that is done, they would reboot, and the phone system should be up and running (minus any config changes and, for example, voicemails that were left after the backup was last run, so max of 24 hours of 'loss' or whatever period the backups are run).
That's all sounding fine to me, but do they need to take the Debian server down, and boot from a 'live disk' to run the dd backup? I assume so, but maybe I am wrong? If so, then the phone system would need to be down for some time (maybe hours - not sure) while the image is created.
Now, that might be okay if they are only imaging once every few months (say), but I just wanted to check, and also ask what others here do in this respect?
Thanks,
Alan.
I have a client that wants to run backups from the command line (separate from the ones scheduled in 3CX itself).
This is a very standard setup on the current 3CX Debian ISO.
We have tested and given them the commands to do this from the Debian Command Line:
Code:
cd /var/lib/3cxpbx/Instance1/Bin/
sudo -u phonesystem /usr/sbin/3CXBackupCmd --file=YYYYMMDD-HHMM-3CX_Backup_All.zip --options=ALL --log=/tmp/YYYYMMDD-HHMM-3CX_Backup_All.log
The client is happy to be able to backup 3CX like the above, but they also require the ability to periodically create an image of the server.
Their preference is to use either dd or ddrescue.
Their thinking is that, if the server 'dies' then they would replace the hardware, restore the dd image, then restore the 3CX backup, all without requiring any access to the 3CX console (they are very comfortable running servers, but prefer not to have to get into any specific applications - such as 3CX - if they can avoid it).
Once that is done, they would reboot, and the phone system should be up and running (minus any config changes and, for example, voicemails that were left after the backup was last run, so max of 24 hours of 'loss' or whatever period the backups are run).
That's all sounding fine to me, but do they need to take the Debian server down, and boot from a 'live disk' to run the dd backup? I assume so, but maybe I am wrong? If so, then the phone system would need to be down for some time (maybe hours - not sure) while the image is created.
Now, that might be okay if they are only imaging once every few months (say), but I just wanted to check, and also ask what others here do in this respect?
Thanks,
Alan.