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?
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!
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
-
rolo2912
- NewUser

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

- Posts: 2
- Joined: 16 Feb 2014 11:37
- Status: Offline
Re: use rsync to backup a share on a nas
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?
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

- Posts: 262
- Joined: 07 May 2013 13:15
- Location: West Drayton (London)
- Status: Offline
Re: use rsync to backup a share on a nas
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:
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:
and then:
I hope that helps 
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
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
Code: Select all
55 10 * * * root mount_smbfs -N -I "Your NS0046 IP" //"Your Username"@"NETBIOS Server Name"/"Your Share" /mnt/"Your local mountpoint"To get rid off password prompt you will need:
Code: Select all
nano ~/.nsmbrcCode: Select all
["NETBIOS Server Name":"Your Username"]
password="Your Password"Watercooling is just the beginning 