Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support skipping directories in backup tool #1792

Merged
merged 4 commits into from
Jul 9, 2020
Merged

Conversation

mikemoritz
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Jul 7, 2020

Codecov Report

Merging #1792 into master will decrease coverage by 5.90%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1792      +/-   ##
==========================================
- Coverage   95.03%   89.13%   -5.91%     
==========================================
  Files         139      139              
  Lines       26649    26657       +8     
==========================================
- Hits        25326    23760    -1566     
- Misses       1323     2897    +1574     
Flag Coverage Δ
#linux 89.13% <100.00%> (-5.91%) ⬇️
#linux_replay 65.99% <62.50%> (-0.01%) ⬇️
Impacted Files Coverage Δ
synapse/tools/backup.py 100.00% <100.00%> (ø)
synapse/lookup/iso3166.py 0.00% <0.00%> (-100.00%) ⬇️
synapse/tools/json2mpk.py 0.00% <0.00%> (-100.00%) ⬇️
synapse/lib/crypto/tinfoil.py 0.00% <0.00%> (-100.00%) ⬇️
synapse/lib/jupyter.py 0.00% <0.00%> (-98.62%) ⬇️
synapse/tools/cellauth.py 0.00% <0.00%> (-98.60%) ⬇️
synapse/tools/cryo/cat.py 0.00% <0.00%> (-95.35%) ⬇️
synapse/tools/autodoc.py 0.00% <0.00%> (-95.12%) ⬇️
synapse/tools/csvtool.py 0.00% <0.00%> (-88.89%) ⬇️
synapse/tools/hive/load.py 0.00% <0.00%> (-86.49%) ⬇️
... and 40 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3434d38...180a30b. Read the comment docs.

continue

logger.info(f'making dir:{dstpath}')
s_common.gendir(dstpath)

for name in fnames:
if name in skipfns:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make this a glob match so i could specify "layers/*" as a skip?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to do a glob match on the relative dir. I left the exclusion specifically for directories, but we could of course extend it to match filenames as well (either as separate skip option, or just make one generic skip option).

@vEpiphyte vEpiphyte merged commit a34e713 into master Jul 9, 2020
@vEpiphyte vEpiphyte deleted the backup-exclude branch July 9, 2020 19:31
@vEpiphyte vEpiphyte added this to the v2.3.0 milestone Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants