Symbolic Links

John Ralls jralls at ceridwen.us
Mon Jun 16 12:17:01 EDT 2014


On 16 Jun 2014, at 08:02, Maf. King <maf at chilwell.net> wrote:

> 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]
> 

Add a .gitignore file to your accounts folder and include in it the line 
*.log

https://github.com/hbons/SparkleShare/issues/121

Regards,
John Ralls






More information about the gnucash-user mailing list