Showing
2 changed files
with
6 additions
and
1 deletions
... | @@ -1559,8 +1559,10 @@ class Pipeline: | ... | @@ -1559,8 +1559,10 @@ class Pipeline: |
1559 | 1559 | ||
1560 | if self.ARCHIVE: | 1560 | if self.ARCHIVE: |
1561 | os.makedirs(runDir + "/archive", exist_ok=True) | 1561 | os.makedirs(runDir + "/archive", exist_ok=True) |
1562 | + datestr = time.strftime('%Y%m%d') | ||
1562 | subprocess.run(["tar", "-C", path_to_3D_data + "/datapoints", "-czf", | 1563 | subprocess.run(["tar", "-C", path_to_3D_data + "/datapoints", "-czf", |
1563 | - runDir + f"/archive/RNANET_datapoints_{time.strftime('%Y%m%d')}.tar.gz", "."]) | 1564 | + runDir + f"/archive/RNANET_datapoints_{datestr}.tar.gz", "."]) |
1565 | + subprocess.run(["ln", "-S", runDir + f"/archive/RNANET_datapoints_{datestr}.tar.gz", runDir + f"/archive/RNANET_datapoints_latest.tar.gz"]) | ||
1564 | 1566 | ||
1565 | def sanitize_database(self): | 1567 | def sanitize_database(self): |
1566 | """Searches for issues in the database and correct them""" | 1568 | """Searches for issues in the database and correct them""" | ... | ... |
... | @@ -19,6 +19,9 @@ cp /home/lbecquey/Projects/RNANet/results/frequencies.csv /home/lbecquey/Project | ... | @@ -19,6 +19,9 @@ cp /home/lbecquey/Projects/RNANet/results/frequencies.csv /home/lbecquey/Project |
19 | cp /home/lbecquey/Projects/RNANet/results/pair_types.csv /home/lbecquey/Projects/RNANet/archive/pair_types_latest.csv | 19 | cp /home/lbecquey/Projects/RNANet/results/pair_types.csv /home/lbecquey/Projects/RNANet/archive/pair_types_latest.csv |
20 | mv /home/lbecquey/Projects/RNANet/results/RNANet.db.gz /home/lbecquey/Projects/RNANet/archive/ | 20 | mv /home/lbecquey/Projects/RNANet/results/RNANet.db.gz /home/lbecquey/Projects/RNANet/archive/ |
21 | 21 | ||
22 | +# Init Seafile synchronization between RNANet library and ./archive/ folder (just the first time !) | ||
23 | +# seaf-cli sync -l 8e082c6e-b9ed-4b2f-9279-de2177134c57 -s https://entrepot.ibisc.univ-evry.fr -u l****.b*****y@univ-evry.fr -p ****************** -d archive/ | ||
24 | + | ||
22 | # Sync in Seafile | 25 | # Sync in Seafile |
23 | seaf-cli start >> latest_run.log 2>&1 | 26 | seaf-cli start >> latest_run.log 2>&1 |
24 | echo 'Waiting 10m for SeaFile synchronization...' >> latest_run.log | 27 | echo 'Waiting 10m for SeaFile synchronization...' >> latest_run.log | ... | ... |
-
Please register or login to post a comment