Freenas client cifs

Status
Not open for further replies.

drone

Cadet
Joined
Dec 27, 2012
Messages
7
Hello,
I do not speak English but I'll try to be readable

I would like to save a backup of my cifs share Freenas on a nas Iomega StorCenter ix2

I know Freenas is not a system client but i can only access the cifs share of the nas Iomega.

As I can't change system files freenas and I wish mount a cifs client, I wanted to call anacron to execute a script when i start at boot to FreeNAS, but apparently freenas does not use anacron.

Would you have another way I can access share cifs Iomega at the reboot Freenas ?

Thank you
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
From the command line you can use mount_cifs to mount the iomega share and then copy the contents.
 

drone

Cadet
Joined
Dec 27, 2012
Messages
7
Yes but i wanted start my script when the Freenas reboot, but finally i start my script only in a fixed time cron just before doing a rsync.

My script :

Code:
#!/bin/sh

cp /mnt/vol/nsmb.conf /etc/nsmb.conf

mount_smbfs -N -I 192.168.1.1 //User@NasOmega/mySharedFolder /mnt/vol/cifsNasOmega # vol/cifsNasOmega is a dataset already created in Freenas

rsync -a --del --ignore-errors  --force --omit-dir-times /mnt/vol/cifsFreenas/ /mnt/vol/cifsNasOmega


Thanks
 
Status
Not open for further replies.
Top