ISPConfig Backup-Space remote

You can use our BackupSpace to run ISPConig with this as an external backup space.

ISPConfig offers you the possibility to save the backups directly to an external storage. It makes no sense to back up relevant data for recovery directly on the server, which should be restored in case of any problems.

To do this enable the option  “Backup directory is a mount” and create a small shell-script.

Mount-Script

The script /usr/local/ispconfig/server/scripts/backup_dir_mount.sh is used to mount the external memory before backups. With our backup space you only need two lines:

#!/bin/bash
sshfs DEINE-ID@DEINE-ID.backup.schaal-it.com:/backups/backup /var/backup

Finally, set the right permissions for the script:

chown root.root /usr/local/ispconfig/server/scripts/backup_dir_mount.sh
chmod 700 /usr/local/ispconfig/server/scripts/backup_dir_mount.sh

If you want, you can unmount the space after the backups. Just create the script /usr/local/ispconfig/server/scripts/backup_dir_umount.sh:

#!/bin/bash
umount /var/backup

Whether you’re using umount or not, it’s up to you. If the backup space is not mounted, ISPConfig will always attempt to mount the storage. This is not only the case with backups, but also when restoring individual backups.