Symbolic Links

Eduardo Mezêncio eduardomezencio at autistici.org
Mon Jun 16 18:31:56 EDT 2014


Thanks for the replies! The solution John Ralls gave worked and now it's
not syncing log files anymore.

Still, everytime I open my gnucash file and everytime I close it,
sparkleshare still shows that it's syncing something, but when I check
my remote repo there was no change at all.

Thank you!


On 16-06-2014 13:17, John Ralls wrote:
> 
> 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
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 538 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20140616/11aec7fa/attachment.sig>


More information about the gnucash-user mailing list