rsync, mounting network drives, and the DLink DNS-321
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
rsync, mounting network drives, and the DLink DNS-321
Hello.
I am 100% Linux Newbie. Thanks in advance for your patience.
I recently built a small Intel Atom 330 based server for my home. I'm using the Vortexbox Fedora-based OS to run the server (primarily used as a media server). So far everything is working great.
In addition to my media server, I've got a DLink DNS-321 NAS. I would like to setup a scheduled, incremental backup of my main server to the DLink NAS. I understand rsync is an excellent option, and am willing to undertake the task of setting it up on my server, but I am uncertain how to make it all happen with the DLink NAS. The NAS is very barebones, and I don't know if I can even install rsync on it. I don't even know if I can get to any kind of command line on the NAS box.
1. Can I mount the NAS drive on my main Linux server and then just run rsync on the server?
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251
Rep:
Hi there,
I currently have a DLink DNS-323 and it does not support rsync or at least not out of the box. I just looked up the DLink DNS-321 on the DLink website and it doesn't look like it does either. I am also unaware of a way to mount the networked drive unless its capable of NFS (network file share - linux systems). You can however connect via FTP or SMB (assuming this model has SMB (Samba)). If I were you I would probably try connecting via SMB over FTP. Due to your setup security won't really matter as you are only transferring data within your network (obviously and hopefully your network is behind a firewall (a router)).
If you want to try connecting to your NAS device you will need to do it one of two ways, the easiest way I know is explained very well via this RED HAT documentation: click here. The document includes both the GUI and command line method. Again I would suggest you use the command line method. This will get you going on how to connect to your NAS box, once connected you will have to learn some very basic scripting skills and how to use your systems crontab.
Hopefully this helps... post back with your thoughts! Take care.
Last edited by bskrakes; 01-27-2010 at 03:30 PM.
Reason: spelling and grammar correction(s)
Pretty sure the DNS-321 is capable of NFS. I don't know much of anything about it, but I know there is an option in the browser-based interface to select NFS or SMB. I've been using it as a server under the SMB option. Pretty sure the file system is ext2 or ext3, something like that.
The DNS-321, my home-made Vortexbox server, and my Windows 7 laptop are all functioning on my home network, and appear as network devices and/or drives in Windows.
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251
Rep:
That is cool because my DLink DNS-323 does not have an option for NFS. Anyway this link for Mounting NFS should help. Of course you will first have to activate it on your DNS-321 then try mounting it from the Fedora box.
So mounting your NAS would be like:
Quote:
mount 192.168.0.100:/DNS321/backup /<directory-you-want>/<dir-name>
Let me know if this helps or if you need more info...
Last edited by bskrakes; 01-27-2010 at 04:24 PM.
Reason: added sample
Excellent.
That's enough to get me started, anyway.
Thanks.
Quote:
Originally Posted by bskrakes
That is cool because my DLink DNS-323 does not have an option for NFS. Anyway this link for Mounting NFS should help. Of course you will first have to activate it on your DNS-321 then try mounting it from the Fedora box.
So mounting your NAS would be like:
Let me know if this helps or if you need more info...
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251
Rep:
Good, I am happy to help! On a side note your question helped me to discover that the DNS-323 can now be modded (basically hacked)... See this wiki (DLINK DNS-323) if you are interested.
I am really jealous that DLINK hasn't provided a firmware upgrade for my device which would enable NFS support. Especially since you have the DNS-321... it only makes sense for them to release an update that would enable a user to setup NFS.
Cheers,
PS: if I actually do help you find success can you press the "thank"s button next to report and quote? LOL that would be great (I don't have a thanks yet )!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.