Hi,
I'd like to know what the best approach is for backing up directly over iSCSI. The frontend only gives me USB, SMB and NFS. Is there an easy way to be able to use a 'local' folder (iSCSI) on the server as backup? Thanks.
Best,
Jelle
Hi,
Thanks for your reply. I'll try that out this weekend and post back.
One more question (a bit) related to this. I didn't read anything about mysql backups in the http://docs.nethserver.org/en/latest/backup.html page. Since roundcube is storing data there, are the databases included in the backup? Thanks again!
Best,
Jelle
Tried getting it to run with only the mount-usb config changed, as you said. I found a few additions to that.
Difference of iSCSI with USB is that there's no LABEL. Have to use UUID of logged in iSCSI device.
Example (in mount-iscsi):
48: my $device = qx( /sbin/blkid -u filesystem -U c3846d38-a36c-4462-b571-1ae1d1f307bd );
-> But the UUID has to be hardcoded in the config, that's not desireable I guess. Do you have a solution?
There's also a check on VFSType in these files where iscsi needs to be added as a valid type:
if ( ($VFSType eq 'usb') || ($VFSType eq 'nfs') || ($VFSType eq 'cifs') || ($VFSType eq 'iscsi')) {
Set in:
- backup-data-duplicity
- cleanup-data-duplicity
- restore-config-duplicity
- restore-data-duplicity
That made it work! :)
Would be nice to have this available in the management-dashboard of course. Haven't looked into that yet.
ps: Mounting options in the script (around line 60) for USB are fine for iSCSI too. iSCSI logs into the target first and creates a /dev/sdX, so that's the same for USB. After that it only needs mounting, but that can happen the same way.
Best regards,
Jelle