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.
SSH-Key
If there is no SSH key on your server (/root/.ssh/id_rsa.pub), you must first create a key pair with ssh-keygen:
ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub.
Then create a shell user for your backup space and enter the key from /root/.ssh/id_rsa.pub there.
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 YOUR-SSH-USER@YOUR-ID.backup.schaal-it.com:/backups /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.