Linux Increasing Sync_Trash_Ttl For File Versioning


Recommended Posts

Can someone confirm that I can increase the time old versions on Linux (arm) by increasing sync_trash_ttl parameter?

 

Can this be done using btsync_edit_settings.py? If so, I would like to see the steps required. 

 

I tried to use

sudo python btsync_edit_settings.py settings.dat set sync_trash_ttl 300
 on a copy of settings.dat with no success. I get messages as follows
Traceback (most recent call last):
  File "btsync_edit_settings.py", line 238, in <module>
    encoded_content = bencode(bdict)
  File "btsync_edit_settings.py", line 144, in bencode
    return _encode_dictionary(input)
  File "btsync_edit_settings.py", line 16, in _encode_dictionary
    result += bencode(key)+bencode(value)
  File "btsync_edit_settings.py", line 150, in bencode
    raise ValueError('Invalid field type: %r' % itype)
ValueError: Invalid field type: <type 'long'>
 

 

Chris

 


I forgot to mention I tried to read existing value for   sync_trash_ttl using

 

 sudo python btsync_edit_settings.py settings.dat get sync_trash_ttl
 
Message came back
Parameter "sync_trash_ttl" doens't exists in bencoded file settings.dat
 
Chris
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.