Symbolic Links

Maf. King maf at chilwell.net
Mon Jun 16 11:02:26 EDT 2014


On Mon 16 June 14 11:34:10 Eduardo MezĂȘncio wrote:
> Hi guys!
> 
> 
> The problem is that when I save in gnucash, instead of saving in the
> linked location, it overwrites my symbolic link with a new .gnucash
> file. Before using this method with gnucash I tested it with a plain
> text file using gedit and gedit did the right thing when saving, so I
> think maybe gedit knows it is dealing with a symbolic link while
> gnucash don't? I really don't know.. Do somebody have a workaround for
> this? Is this something I should send to the developer's list?
> 

Hi Eduardo.

When GC saves the file, it renames the file to the backup, then saves the data 
out to the filename - it doesn't update a file and then create a backup - I 
think it is logically a more "safe" way to save out financial data... but this 
does explain the symlink being overwritten.

I think your only option is to reduce the number of days that backups are kept 
for....

although thinking about it, would it work if you kept the GC data outside the 
shared folder, but had a symlink pointing at the main GC data file?

so 
~/shared/link-to-gnucash-data-file
~/notshared/gnucash-data/[file, backups,logs]



HTH,
Maf.



More information about the gnucash-user mailing list