Keeping .SyncTrash under control (until official solution)


sab34

Recommended Posts

I created a set of rules to manage the size of the .SyncTrash folders. It really is a bit of a hack, but seems to work (please please test on dummy folder yourself before you trust this). It uses Hazel and thus is a Mac-only solution, but could be reproduced with a script on other platforms.

Get read-only access using R635ATSVHLPUENHGKIJBW7ZNOF42AGEFK

I'll try to update the files with improvements as time permits.

Contents:

Hazel (http://www.noodlesoft.com) rules to automatically delete files contained in ./.SyncTrash folder created by BTSync after a user-specified period. This is a temporary, Mac-specific hack while we wait for a built-in solution; currently, deleted files would otherwise stay on disk forever or until manually deleted.

This can be done using cron jobs, etc. Hazel is just easier.

What these rules do:

- watch BT SyncTrash folders

- compress each file (zip) one day after it was moved to .SyncTrash

- delete zipped files after 30 days

- delete empty folders

- apply all the above recursively to nested folders

How to set up these rules in Hazel:

- show hidden files & folders in Finder (made easier if you use TotalFinder or PathFinder)

- add every .SyncTrash/ folder you have, i.e. one per root folder synced by BTSync

- import the hazel rules.

- feel free to tweak dates, etc.

Hope this helps.

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.