tycho
Guru (not...)
- Joined
- Aug 9, 2011
- Messages
- 652
- Reaction score
- 272
I'm looking for a way to image a Cloud-at-Cost VPS to my local machine. In this particular case (not that I suppose it matters) the system is Incredible PBX 12.7.1 for Ubuntu 14.04.1 with Asterisk 12 and FreePBX 12. I'm running other small applications and daemons on the VPS as well.
Unlike Dig. Ocean, CaC doesn't provide a backup/snapshot/image capability (at least not one that I have been able to uncover). But my thinking is that any mechanism that would allow for the imaging of a remote server with the image saved to local hardware should work, whether CaC, or VPS, or not.
I have been able to do a =file-by-file= backup of the CaC VPS to my local hardware using rsync. It would be easy to do this from a local Linux box, but I decided to complicate matters by insisting on running things from a Win7 box -- my primary desktop. Rsync can be coaxed into working just fine via Cygwin on the Windows side.
Before I run the backup, I stop the following services using the following commands:
amportal stop
/etc/init.d/sendmail stop
apachectl stop
/etc/init.d/mysql stop
/etc/init.d/webmin stop
I leave IPtables and Fail2Ban running so as not to expose the VPS during this process. (Unlike MySQL, for example, I am not aware of problems associated with copying files and tables from those two services while running. Maybe I am wrong in this regard?)
The rsync backup goes off swimmingly if I exclude a couple of problematic directories. And the speed isn't horrific for my tiny Developer 1 instance: I transferred 1.70G (compressed) at 851.79K bytes/sec to my local server, and that uncompressed to 4.35G at my end. Fast enough to start and walk away, or to do in the background (as I did).
But: me still wanna image backup, not a file-by-file backup.
Anybody have suggestions as how to pull off an image backup of a remote machine to local hardware? I'm looking for something rather like "Clonezilla" that will work with a remote VPS and save the image to a local drive. Hmmm; maybe Clonezilla =can= do that now that I understand how to and have set up the "conduit," and have created SSH keys, etc. I'll explore that while I await what surely will be the perfect answer from one of you...
**EDIT TO ADD**
I explored Clonezilla and quickly found this:
Unlike Dig. Ocean, CaC doesn't provide a backup/snapshot/image capability (at least not one that I have been able to uncover). But my thinking is that any mechanism that would allow for the imaging of a remote server with the image saved to local hardware should work, whether CaC, or VPS, or not.
I have been able to do a =file-by-file= backup of the CaC VPS to my local hardware using rsync. It would be easy to do this from a local Linux box, but I decided to complicate matters by insisting on running things from a Win7 box -- my primary desktop. Rsync can be coaxed into working just fine via Cygwin on the Windows side.
Before I run the backup, I stop the following services using the following commands:
amportal stop
/etc/init.d/sendmail stop
apachectl stop
/etc/init.d/mysql stop
/etc/init.d/webmin stop
I leave IPtables and Fail2Ban running so as not to expose the VPS during this process. (Unlike MySQL, for example, I am not aware of problems associated with copying files and tables from those two services while running. Maybe I am wrong in this regard?)
The rsync backup goes off swimmingly if I exclude a couple of problematic directories. And the speed isn't horrific for my tiny Developer 1 instance: I transferred 1.70G (compressed) at 851.79K bytes/sec to my local server, and that uncompressed to 4.35G at my end. Fast enough to start and walk away, or to do in the background (as I did).
But: me still wanna image backup, not a file-by-file backup.
Anybody have suggestions as how to pull off an image backup of a remote machine to local hardware? I'm looking for something rather like "Clonezilla" that will work with a remote VPS and save the image to a local drive. Hmmm; maybe Clonezilla =can= do that now that I understand how to and have set up the "conduit," and have created SSH keys, etc. I'll explore that while I await what surely will be the perfect answer from one of you...
**EDIT TO ADD**
I explored Clonezilla and quickly found this:
- Online imaging/cloning is not implemented yet. The partition to be imaged or cloned has to be unmounted.