Comments (10)
Originally from http://code.google.com/p/greyhole/issues/detail?id=39
from greyhole.
Another use case for this feature: restoring files using CrashPlan writes all the files to .cprestoretmpXXX and then renames them when the write is finished. This creates a ton of extra work for greyhole that could be avoided by simply ignoring .cprestoretmp.
To that end, this feature should allow using a regex or shell glob as opposed to just a list of file names or paths.
from greyhole.
Suggested configuration for ignored files:
ignored_files = [0-9A-F]{8}.tmp
ignored_files = .cprestoretmp.*
ignored_files = Thumb.db
ignored_folders = _UNPACK_.*
To implement, Greyhole would ignore all writes, deletes, and renames that have a target that match any of the defined ignored files/folders options. Renames that have a source matching an ignored pattern would still be executed.
Ignored files would stay in the LZ, and thus could increase the size of the LZ for many users. Might want to include the size of the LZ in the output of --stats at some point.
from greyhole.
The configuration makes sense to me. Another way of handling the temporary file use case would be to implement some sort of a "cooldown period". When watching for changes, wait xxx minutes before taking any action. I haven't dug into the code yet, so I don't know if how feasible this is or where it would need to live. In order to have a positive performance impact, I think it would need to live early in the pipeline, probably in the vfs?
from greyhole.
Want to help me test the new feature?
Replace your /usr/bin/greyhole file with this version:
sudo curl -o /usr/bin/greyhole 'https://dl.dropboxusercontent.com/s/r0wav1c3ahxdt27/greyhole-0.9.34?token_hash=AAGyuabLDn90XUneuZVNJQ_tJ8oH_jwo1xzRTOzUDkt7gQ&dl=1' && sudo chmod +x /usr/bin/greyhole
Then change your greyhole.conf, and restart the Greyhole service.
You can see the new default greyhole.conf here:
https://github.com/gboudreau/Greyhole/blob/master/greyhole.example.conf
See the bottom of it for the new options I added.
from greyhole.
Awesome! I've got it downloaded and running, so far so good. Waiting for crashplan to start spamming.
from greyhole.
And it works! Very nice! Thanks much!
Aug 24 19:22:28 6 write: Now working on task ID 1052163: write data1/backup/loki/Volumes/rusty/LaBianca/Master Pictures/2012/08/22/.cprestoretmp598340674630189313
Aug 24 19:22:28 6 write: Ignoring task because it matches the following ignored_files pattern: .cprestoretmp.*
from greyhole.
Should we all download the new greyhole script, or will a new version be
released soon?
On 25/08/2013 00:23, Erik LaBianca wrote:
And it works! Very nice! Thanks much!
Aug 24 19:22:28 6 write: Now working on task ID 1052163: write
data1/backup/loki/Volumes/rusty/LaBianca/Master
Pictures/2012/08/22/.cprestoretmp598340674630189313
Aug 24 19:22:28 6 write: Ignoring task because it matches the
following ignored_files pattern: .cprestoretmp.*—
Reply to this email directly or view it on GitHub
#2 (comment).
from greyhole.
I'll create a new version (0.9.34) right now. Expect it live in a few minutes.
from greyhole.
Cool, thank you.
On 31/08/2013 02:36, Guillaume Boudreau wrote:
I'll create a new version (0.9.34) right now. Expect it live in a few
minutes.—
Reply to this email directly or view it on GitHub
#2 (comment).
from greyhole.
Related Issues (20)
- Error: failed to initialize Greyhole database HOT 2
- Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). HOT 5
- Greyhole slow when transferring things via Radarr/Sonarr etc. HOT 3
- greyhole timezone=-13:00 vs ubuntu 18 (mysql 5.7) HOT 2
- MySQL server has gone away HOT 2
- No access to files from shares. HOT 11
- Change fsck cron timing HOT 1
- Debian 12, samba 4.17 and VFS not building HOT 2
- VFS errors HOT 9
- logrotate is already installed HOT 6
- daemon: Greyhole VFS module warning HOT 2
- Greyhole won't start after update - SQL error Can't DROP 'uniqness'; HOT 4
- Makefile error Samba 4.18.6 HOT 5
- DEBUG read_smb_spool: Directory created: / WARN read_smb_spool: Failed to create directory HOT 1
- Can't add drive to drive selection group! HOT 16
- Ownership of share-folders inside gh folder HOT 6
- Accidentally Copied Lots of Small Files - Recovering from a Blown Out log and Spool. HOT 5
- fsck parallelism HOT 1
- Failed file copy (using rename) HOT 3
- No Files shown after reinstall Greyhole HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from greyhole.