rda-python-dsquasar 1.0.4__tar.gz → 1.0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/PKG-INFO +1 -1
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/pyproject.toml +1 -1
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/src/rda_python_dsquasar/dsquasar.py +7 -4
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/src/rda_python_dsquasar.egg-info/PKG-INFO +1 -1
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/tests/test_dsquasar.py +1 -1
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/LICENSE +0 -0
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/README.md +0 -0
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/setup.cfg +0 -0
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/src/rda_python_dsquasar/__init__.py +0 -0
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/src/rda_python_dsquasar.egg-info/SOURCES.txt +0 -0
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/src/rda_python_dsquasar.egg-info/dependency_links.txt +0 -0
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/src/rda_python_dsquasar.egg-info/entry_points.txt +0 -0
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/src/rda_python_dsquasar.egg-info/requires.txt +0 -0
- {rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/src/rda_python_dsquasar.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_dsquasar
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.5
|
|
4
4
|
Summary: RDA Python package to backup and recover RDA data archives to and from GLOBUS Quasar backup server
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-dsquasar
|
|
@@ -83,9 +83,10 @@ SOPT = 1
|
|
|
83
83
|
WOPT = 2
|
|
84
84
|
ORDERS = {} # cache current order number for each dsid
|
|
85
85
|
BFILES = {} # cache current order number for each dsid
|
|
86
|
-
BCKSIZE =
|
|
87
|
-
TARSIZE =
|
|
88
|
-
MINSIZE = PgLOG.PGLOG['
|
|
86
|
+
BCKSIZE = 90*PgLOG.PGLOG['ONEGBS'] # 90GB, dsglobus transfer size
|
|
87
|
+
TARSIZE = 5*PgLOG.PGLOG['ONEGBS'] # 5GB, tarfile size limit
|
|
88
|
+
MINSIZE = PgLOG.PGLOG['TWOGBS'] # 2GB, minimal tarfile size
|
|
89
|
+
ONESIZE = 20*PgLOG.PGLOG['ONEGBS'] # 20GB, minimal file size to tar a single file
|
|
89
90
|
TFCOUNT = 100 # if file count is greater, use MINSIZE for tar file
|
|
90
91
|
SUBLMTS = 2000 # file count limit for a sub-group
|
|
91
92
|
|
|
@@ -899,7 +900,9 @@ def process_backup_files(qinfo, dsid, fcnt, recs, filetype):
|
|
|
899
900
|
if not fd: fd = open_input_file(qinfo, dsid, filetype)
|
|
900
901
|
fd.write(instr)
|
|
901
902
|
qinfo['instr'] += instr
|
|
902
|
-
if qinfo['fcnt']
|
|
903
|
+
if qinfo['fcnt'] == 1:
|
|
904
|
+
if qinfo['size'] < ONESIZE: continue
|
|
905
|
+
elif qinfo['fcnt'] < TFCOUNT:
|
|
903
906
|
if qinfo['size'] < TARSIZE: continue
|
|
904
907
|
else:
|
|
905
908
|
if qinfo['size'] < MINSIZE: continue
|
{rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/src/rda_python_dsquasar.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_dsquasar
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.5
|
|
4
4
|
Summary: RDA Python package to backup and recover RDA data archives to and from GLOBUS Quasar backup server
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-dsquasar
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_dsquasar-1.0.4 → rda_python_dsquasar-1.0.5}/src/rda_python_dsquasar.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|