New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Using rsync to copy to NAS

Got problems with Bubba? Then this forum is for you.
Locked
TazUk
Posts: 38
Joined: 11 May 2007, 14:33

Using rsync to copy to NAS

Post by TazUk »

Hi all.

It's been a while since I setup my Bubba.
Currently I have an rsync backup that runs once a week overnight to backup my data to an attached USB drive that is mounted through fstab.

I now find myself needing to use rsync to backup certain folders to my thecus NAS. Trouble is I've got brain freeze - I've looked at a number of different "how tos" but can't seem to figure out the route to take.

So I thought I'd ask here:
Anyone done this?
What's the best approach to take?
Do I need to use the IP address (the NAS is on DHCP)
Do I need to permanently mount the NAS in fstab or can I mount on the fly as and when I need to?

TIA
TazUk
--
The 'Net is a waste of time,
and that's exactly what's right about it.

William Gibson
TazUk
Posts: 38
Joined: 11 May 2007, 14:33

Post by TazUk »

Still struggling with this :roll:

on running

Code: Select all

mount -t nfs //DRTHEPOLIS/Downloads /mnt/DrTDownloads
I get the response

Code: Select all

mount: directory to mount not in host:dir format
I've searched on this but not found much in the way of help?

Any advice? help? suggestions? :D
TazUk
--
The 'Net is a waste of time,
and that's exactly what's right about it.

William Gibson
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

is the host you want the mount on
in the /etc/hosts file of the nfs server?
TazUk
Posts: 38
Joined: 11 May 2007, 14:33

Post by TazUk »

is the host you want the mount on in the /etc/hosts file of the nfs server?
Errmm :?:

Not sure how I'd go about adding bubba to the /etc/hosts file on the Thecus NAS - there isn't access to that file through the web admin pages
TazUk
--
The 'Net is a waste of time,
and that's exactly what's right about it.

William Gibson
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

ah, got it
I don't know that NAS, but is there any security on it?
or a way to grant access to servers?
TazUk
Posts: 38
Joined: 11 May 2007, 14:33

Post by TazUk »

The folders I've set up for backup to (on the NAS) are public read / writable and accessible from Vista without issue (samba?).

I've tried setting up NFS permissions to the destination folders, this seems to make no difference.
TazUk
--
The 'Net is a waste of time,
and that's exactly what's right about it.

William Gibson
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Post by Ubi »

yeah I did this. I'll try to post some sensible comment when I'm less tired but harrass me if I don;t

for now: nfs is difficult with file permissions (they call it No File Security for a reason!) especially when mixed with SMB which really does not understand permissions. clever use of rsync switches helps a bit though

ubi
TazUk
Posts: 38
Joined: 11 May 2007, 14:33

Post by TazUk »

Oops..

Forgotten that I'd posted the question here as well - thankfully I do the "notify me" thing when posting.

Managed to get the mount issue resolved and have rsynced successfully across the board - switching the NAS and Bubba to static IPs and mounting by IP resolved most of the problems straight away.
TazUk
--
The 'Net is a waste of time,
and that's exactly what's right about it.

William Gibson
Locked