Comments (7)
Yeah a warn
would be great, and avoid stopping the syncing. 👍
Btw, the release from last week was amazing, it fixed my previous problems with encoding and the 'progress bar' is great! Good job guys!
from b2_command_line_tool.
My pleasure!
from b2_command_line_tool.
What should sync do with symlinks?
Right now it's following the symlink. Which seems reasonable to me. What should it do with a broken symlink? Would a nice error message solve the problem?
from b2_command_line_tool.
I'd prefer a --no-sync-symlink option (or something similar), but a warn option is good enough.
I use encfs before sending data offsite, so some symlinks don't exist.
from b2_command_line_tool.
Permission denied errors have similar effects, i.e., also break off the sync. Something like this would be really cool:
diff --git a/b2/sync/folder.py b/b2/sync/folder.py
index 52af481..cb25e34 100644
--- a/b2/sync/folder.py
+++ b/b2/sync/folder.py
@@ -122,7 +122,7 @@ class LocalFolder(AbstractFolder):
full_path = os.path.join(dir_path, name)
relative_path = full_path[prefix_len:]
# Skip broken symlinks or other inaccessible files
- if not os.path.exists(full_path):
+ if not os.path.exists(full_path) or not os.access(full_path, os.R_OK):
if reporter is not None:
reporter.local_access_error(full_path)
else:
from b2_command_line_tool.
Reporter should be extended to handle permission errors. Thanks for the suggestion.
from b2_command_line_tool.
Wow, thank you!
from b2_command_line_tool.
Related Issues (20)
- Install from source documentation section should be updated to PDM
- B2_DEBUG_HTTP=1 does not seem to have any effect HOT 1
- Feature request: use b2 cli without saving plaintext credentials in `.b2_account_info` HOT 9
- Official Docker Image ? HOT 3
- delete_file_version needs bypassGovernance option HOT 1
- Can't upload FIFOs with upload-file HOT 6
- UnicodeEncodeError: 'ascii' codec can't encode character '\u2022' in position 1325: ordinal not in range(128) HOT 1
- [Question] Explain how sync between buckets work; slow overall speed HOT 8
- b2sdk.exception.InvalidAuthToken: Invalid authorization token. Server said: (bad_auth_token) HOT 2
- Error when resuming upload HOT 2
- switch to stable pypy version after new pypy is released HOT 2
- b2 ls --json destroys output structure with informational message HOT 1
- `Using https://api.backblazeb2.com` output to stderr causing problems for automation that only expects errors and warnings on stderr
- pip install breaks with setuptools 69.0.0 HOT 3
- b2 should respect the spec's default fallback for `XDG_CONFIG_HOME` HOT 4
- Feature request: Support transparent compression HOT 1
- error: the following arguments are required: command HOT 5
- Issue with b2 sync :: KeyError: 'content-length' HOT 11
- Package `b2` for Alpine Linux HOT 5
- Linux.Xor.DDoS false-positive from chkrootkit due PyInstaller use
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 b2_command_line_tool.