BeTheSync

How to set sync_trash_ttl on Linux btsync?

Recommended Posts

Hello,

I have a Synology NAS with btsync 1.1.48 and its working Web-GUI.

How can I set up the "sync_trash_ttl", which I read about in the unofficial FAQ? => How long are files kept in .SyncTrash/.SyncArchive for?

On Windows or Mac its simple, but I did not found an "Advanced"-Prefs in the Settings from the Web-GUI.

Any hint would be nice :-)

Thank You!

BeTheSync!

Share this post


Link to post
Share on other sites

I have a Synology NAS with btsync 1.1.48 and its working Web-GUI.

How can I set up the "sync_trash_ttl", which I read about in the unofficial FAQ? => How long are files kept in .SyncTrash/.SyncArchive for?

On Windows or Mac its simple, but I did not found an "Advanced"-Prefs in the Settings from the Web-GUI.

Any hint would be nice :-)

You can add the line:

"sync_trash_ttl" : 30,

...to your config file

Share this post


Link to post
Share on other sites
Guest idef1x

Before trying out : would it be possible to do on a per syncfolder base? Or is it a global setting?

Share this post


Link to post
Share on other sites

You can add the line:

"sync_trash_ttl" : 30,

...to your config file

Hi and thanks. Where would I find the configfile on the synology NAS? I guess, its not editable via the WebGUI?

Share this post


Link to post
Share on other sites
Guest idef1x

If you didn't build a config file yet....use the command "btsync --dump-sample-config > configfile" to get started

Share this post


Link to post
Share on other sites

Thank you for pointing this out to me!

The generated configfile looks like the one, I found now, but I wasn't sure, because on the NAS there is also a binary settings.dat file.

So for all synology Users, this is the default config file created by the SynoCommunity

cat /volume1/@appstore/btsync/var/sync.conf

{
"device_name": "YOUR_SERVERNAME",
"storage_path" : "/usr/local/btsync/var",
"pid_file" : "/usr/local/btsync/var/syncapp.pid",
"webui" :
{
"listen" : "0.0.0.0:8888",
"login" : "admin",
"password" : "YOUR_PASSWORD"
}

Share this post


Link to post
Share on other sites

How do I set ttl to more than 1 year or infinity?

The dpkg-reconfigure btsync command doesn't allow me to enter a period larger than 1 year and the conf file is overwritten on every update, so manual changes are erased.

Share this post


Link to post
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.