Backup / Filesystem access: Remount object after restart

Hiya,

would it be possible to remount the mounted object (Backup & Restore / Filesystem access) after a restart of Axigen or the server?

I use backuppc to back up all e-mails in our domain regularly.
Everytime the server is rebooted or the axigen service is restarted, the mounted object is lost, causing backups to fail.

Cheers,
JK

Hello,

It is not recommended to keep the storage mounted all the time.

The best approach it will be to have a custom script that will mount the storage before backup job and unmount it after the job is finished.

For example you may use run-cli.py python script to mount the storage:

python run-cli.py "config server|CONFIG FTP-BACKUP|FILESYSTEM mount <MOUNT_POINT> domain <DOMAIN_NAME>|quit"

and to unmount:

python run-cli.py "config server|CONFIG FTP-BACKUP|FILESYSTEM unmount <MOUNT_POINT>|quit"

Or you may use ncat utility to mount the storage:

#!/bin/bash

adminUser="backupAdmin"
adminPass="backupAdminPass"

{
        echo -ne "user ${adminUser}\r\n"
        echo -ne "${adminPass}\r\n"
        echo -ne "config server\r\n"
        echo -ne "CONFIG FTP-BACKUP\r\n"
        echo -ne " FILESYSTEM mount <MOUNT_POINT> domain <DOMAIN_NAME>\r\n"
        echo -ne "quit\r\n"
} | nc 127.0.0.1 7000

exit 0

Regards,
Florin

Excellent!
I’ll have a look into that and how to integrate this with in the BackupPC jobs.

I have created a .sh script, with your nc example. I did have some issues with ssh and backuppc not doing as it should (which might very well have been my own stupidity…), but now it works like a charm!

So BackupPC is now backing up the e-mails every night using the Axigen Filesystem Access feature and your script.
Excellent!

1 Like