This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

use rsync to backup a share on a nas

Synchronize files & directories to/from XigmaNAS with minimal data transfer.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
rolo2912
NewUser
NewUser
Posts: 2
Joined: 16 Feb 2014 11:37
Status: Offline

use rsync to backup a share on a nas

Post by rolo2912 »

Just wondering, is it possible to use rsync to backup a share from a nasbox. I have a ns0046 with a share called pictures. The ns0046 is not running as a rsync server/client (no option to set this up). What I am trying to do is to use an rsync cron to backup all the files from the ns0046/picutres share to the nas4free server.
Q: Is it possible? How?

Thank you in advance?

rolo2912
NewUser
NewUser
Posts: 2
Joined: 16 Feb 2014 11:37
Status: Offline

Re: use rsync to backup a share on a nas

Post by rolo2912 »

ok, made some progress myself. Mounted the share on the remote NAS to a local folder. Had to do it on the shell. After this a "local" rsync worked.

Question now is: How do you mount a samba share on the Network via the Nas4Free webinterface. Somehow I think the mounted drive wont survive the reboot of the nas4free box?

chrisf4lc0n
Advanced User
Advanced User
Posts: 262
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: use rsync to backup a share on a nas

Post by chrisf4lc0n »

If the NS0046 is running some sort of embedded Linux it is probably possible to install the rsync...??
It is possible to mount the samba shares on the NAS4Free, you can even put all the paths into the fstab, but unfortunately it does not survive reboot :( It is similar with the cron, both of the files get overwritten with default webGUI settings when rebooting.
I do however have an idea, if you run the rsync lets say at 11:00 AM every day, then put the line mounting your samba share into the cron file at 10:55 :) Something like:

Code: Select all

55 10    * * *   root mount_smbfs -N -I "Your NS0046 IP" //"Your Username"@"NETBIOS Server Name"/"Your Share" /mnt/"Your local mountpoint"
Or even simpler add this line mount_smbfs -N -I "Your NS0046 IP" //"Your Username"@"NETBIOS Server Name"/"Your Share" /mnt/"Your local mountpoint" to webGUI command script (PostInit)

To get rid off password prompt you will need:

Code: Select all

nano ~/.nsmbrc
and then:

Code: Select all

["NETBIOS Server Name":"Your Username"]
password="Your Password"
I hope that helps :)
Watercooling is just the beginning ;)

Post Reply

Return to “RSYNC”