One thing I personally struggled with was setting up a backup server on a VPS i found for cheap. I thought I'd share how I did it maybe someone will find it useful. (I did not find any resources on this, sorry if this is a double up i did a lot of searching round and decided to give it a go myself). I wanted to contribute π
SSH into your server as root:
Step 1: Create the directory
mkdir -p /mnt/virtualdisks
Step 2: Create a Virtual Disk Image (this will take long) // Leave at least 50GB for ENHANCE+OS
dd if=/dev/zero of=/mnt/virtualdisks/backup.img bs=1M count=1950000
The 1950000 = 1950 GB
Just enter the Megabyte value.
Step 3: Double Check
ls -lh /mnt/virtualdisks/backup.img
Since the operation takes a while it's good to make sure nothing went wrong by running this.
Step 4: Assign the Disk to a Loop Device
losetup -f /mnt/virtualdisks/backup.img
Running this will add this as a "loop device"
Step 5: Check Loop Device
losetup -a
Running this command will list all the "loop" devices. Find which one it is and proceed to step 6.
Step 6: Install ENHANCE
- Login to Enhance
- Servers > Add Server
- Run Command
Step 7: Add BACKUP role
Device path: /dev/loop# (from step 5-6)
Mount point: Can leave as is
Step 8: Enjoy!
It will show your server as having DOUBLE the storage it really has, but it will work as intended.