[opensuse] NFS Offline Access
I have a read only NFS share on my LAN with all my movies, music and photos etc for sharing to my local devices. Is there any way I can make specific sub-directories of this available off-line (i.e. sync to the hard disk)? What I would like to achieve is that the directory /nfs/media/music will be accessible on my laptop when I take it out of the house. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Paul Groves
I have a read only NFS share on my LAN with all my movies, music and photos etc for sharing to my local devices.
Is there any way I can make specific sub-directories of this available off-line (i.e. sync to the hard disk)?
What I would like to achieve is that the directory /nfs/media/music will be accessible on my laptop when I take it out of the house.
Not via nfs. You either copy desired data to your computer or a flash-drive or make the data available via a web service. With 64GB stick widely aavailable, that is probably your best/easiest option aside copying them to your laptop. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Paul Groves wrote:
I have a read only NFS share on my LAN with all my movies, music and photos etc for sharing to my local devices.
Is there any way I can make specific sub-directories of this available off-line (i.e. sync to the hard disk)?
Sure, just copy the data you want. -- Per Jessen, Zürich (3.3°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Personally, I prefer to use ownCloud, because then I always have my data with me, regardless of whether I have network/internet access. And the versioning is nice too :) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
I use owncloud for my documents but this will not be suitable for this
purpose as the Music takes up a lot of space in full quality.
Is there any way of syncing the files from NFS to another folder on my
laptop's hdd? I would think it is best to use rsync but I only want
this to happen on my LAN not over the internet.
On 29 January 2015 at 14:40, Christopher Myers
Personally, I prefer to use ownCloud, because then I always have my data with me, regardless of whether I have network/internet access. And the versioning is nice too :)
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Well, your NFS is only mounted in your local LAN, ne?
So, a script with:
- check NFS mount-point in /etc/mtab, or exit
- check for existing 'music' dir in NFS, or exit
- rsync NFS/music to Local/music
That way, you can start the sync manually (e.g. you know there is
new music), or via cron-job and nothing bad will happen if no NFS.
Point your player to your local music dir.
Cheers,
- Yamaban.
On Thu, 29 Jan 2015 18:31, Paul Groves
I use owncloud for my documents but this will not be suitable for this purpose as the Music takes up a lot of space in full quality.
Is there any way of syncing the files from NFS to another folder on my laptop's hdd? I would think it is best to use rsync but I only want this to happen on my LAN not over the internet.
On 29 January 2015 at 14:40, Christopher Myers
wrote: Personally, I prefer to use ownCloud, because then I always have my data with me, regardless of whether I have network/internet access. And the versioning is nice too :) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2015-01-29 18:31, Paul Groves wrote:
I use owncloud for my documents but this will not be suitable for this purpose as the Music takes up a lot of space in full quality.
Is there any way of syncing the files from NFS to another folder on my laptop's hdd?
plain "cp", or doplphin, or nautilus, or Midnight Commander, or... many others, once the NFS mount is active, from its directory to another one on your laptop. Suggestion: just copy to your laptop the few files that you are going to watch or listen to while out of reach of your LAN. Not the entire collection.
I would think it is best to use rsync but I only want this to happen on my LAN not over the internet.
That's up to you. Just specify a LAN address. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
I'd guess that you could do some sort of shell script that does an nslookup of the ip address of your server; if it's a local address, you could have rsync kick off, and if it's the wan IP, then have it not? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
You should take a look at 'cachefilesd'.
http://xmodulo.com/how-to-enable-local-file-caching-for-nfs-share-on-linux.h...
--
Later,
Darin
On Thu, Jan 29, 2015 at 12:51 PM, Christopher Myers
I'd guess that you could do some sort of shell script that does an nslookup of the ip address of your server; if it's a local address, you could have rsync kick off, and if it's the wan IP, then have it not?
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Thu, 29 Jan 2015 14:09:57 -0500
Darin Perusich
You should take a look at 'cachefilesd'.
http://xmodulo.com/how-to-enable-local-file-caching-for-nfs-share-on-linux.h...
And it is even include in openSUSE :) Does it support initial seeding? I.e. according to description it will cache only files that were accessed, while as I understand the goal is to have full copy that is automatically synchronized (like offline files in Windows). Can cachefilesd start with caching all files? Will it understand if files are copied by other means?
-- Later, Darin
On Thu, Jan 29, 2015 at 12:51 PM, Christopher Myers
wrote: I'd guess that you could do some sort of shell script that does an nslookup of the ip address of your server; if it's a local address, you could have rsync kick off, and if it's the wan IP, then have it not?
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On January 29, 2015 04:29:42 am Paul Groves wrote:
I have a read only NFS share on my LAN with all my movies, music and photos etc for sharing to my local devices.
Is there any way I can make specific sub-directories of this available off-line (i.e. sync to the hard disk)?
What I would like to achieve is that the directory /nfs/media/music will be accessible on my laptop when I take it out of the house.
Easiest way might be to install Opera, which will let you share a directory
from afar.
--
Bob Smits
participants (9)
-
Andrei Borzenkov
-
Carlos E. R.
-
Christopher Myers
-
Darin Perusich
-
Patrick Shanahan
-
Paul Groves
-
Per Jessen
-
Robert Smits
-
Yamaban