[GNC] Problem with saving to NAS Drive

David Cousens davidcousens at bigpond.com
Mon May 27 18:39:21 EDT 2019


John,

There is certainly no problem accessing an NAS drive from Linux systems
(Mint19.1 in my case). I have been doing it since my NAS was put on the
system 4 years agoand through all the GnuCash versions but it does require a
little bit of admin work to setup. The NAS has to be setup to export shares
in the right format for your OS NFS4 in my case and with the right
permissions. 

I use autofs to automount my devices on my Linux system the setup is not too
complicated. A file /etc/auto.WNAS defines the shares to be mounted by
autofs: (192.168.0.2 is the url for my NAS)
#
#    NFS  shares
#
NAS_backups                   192.168.0.2:/data/Backups          
NAS_music                     192.168.0.2:/data/Music
NAS_videos                    192.168.0.2:/data/Videos
NAS_pictures                  192.168.0.2:/data/Pictures
NAS_documents                 192.168.0.2:/data/Documents
NAS_development               192.168.0.2:/data/Development

/etc/auto.master has entries to define the mount point as follows.
#<mount point>                        <map file>                 <options>
/home/david/ArtelierW/NAS             /etc/auto.WNAS             
--ghost,-fstype=nfs4,rw,intr,uid=1000,gid=100

I use a directory under my home directory as the mount point which means I
can always access it from the file manager on the system and it is also
accessible from within Gnucash. Autofs has to be installed of course.
At bootup autofs will try to mount the NAS if it is switched on. (I normally
have it switched off except for specific times for automatic backups as a
security measure. In that case, autofs will mount the NAS shares whenever I
try to access them from the mount point in my home directory if it wasn't
mounted at bootup. It takes a second or two and the shared directory
structure is accessibe. Caution for backups: exclude the mountpoint from a
backup or you end up backing the backup up to itself a very circular
argument.
I haven't set this up on my wife's Windows 10 box (its backed up to the
Linux system which is in turn backed up to the NAS) but I would be surprised
if it is not possible, although probably much harder and more obscure to do.
I'll give it a go  when I can tear the Windows box away from my wife.

David Cousens





-----
David Cousens
--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html


More information about the gnucash-user mailing list