Hi Giorgio!
This is my solution for my VPS Ubuntu 14.04.1 LTS + Plesk 12
- Idera ServerBackup Free for incremental backup;
- Idera HotCopy + dd command (disk duplicator) for weekly snapshot without reboot (live system).
You'll need a FTP account to storage the backups.
-
http://wiki.r1soft.com/display/ServerBackup/Server Backup Free
(instruction and download
http://www.howdididothat.info/2013/...e-to-backup-a-ubuntu-system-to-a-nfs-storage/ (With this you will have ServerBackup Free and HotCopy too)
How to use Idera HotCopy?
It's very very simple. From bash:
- cd /tmp
- dd if=/dev/zero of=zerofillfile bs=1M
- rm zerofillfile
Now lunch Idera HotCopy. From bash:
- mkdir /mnt/snapshot
- cd /mnt/snapshot
- hcp -m /mnt/snapshot /dev/sda1 (partition to snapshot)
- umount /dev/hcp1
Now you can lunch DD command (this is valid to storage in FTP remote space)
- dd if=/dev/hcp1 | gzip -c | ssh account_ftp@ftp_address "cat > /path_to_ftp_storage
/Current_Date_Snapshot.img.gz"
At the end, you'll be able to remove the /dev/hcp1. From bash:
- hcp -r /dev/hcp1
*** IMPORTANT ***
For the first time (and every time you'll upgrade the kernel on the server), you'll need to DD the MBR of the disk. Reboot your server from a live CD or Rescue Mode (I'm VPS OVH Customer). From the bash:
- dd if=/dev/sda of=/home/mbr.img bs=512 count=1 (Remember to copy mbr.img to FTP backup storage)
How to restore?
It's very very simple too. From live CD (or Rescue Mode).
- umount /dev/sda1 (IMPORTANT: the partition to restore must be unmounted)
- ssh account_ftp@ftp_address "cat /path_to_ftp_storage
/Current_Date_Snapshot.img.gz" | gunzip -c | dd of=/dev/sda1
Now you'll need to restore Boot loader:
- dd if=/path_on_ftp_storage/mbr.img of=/dev/sda bs=446 count=1 (the boot loader is only the first 446 byte of MBR)
Reboot and enjoy!
That's all! Totally free!