... | @@ -54,7 +54,7 @@ If you want to use the automatic mode on daily basis without manual user executi |
... | @@ -54,7 +54,7 @@ If you want to use the automatic mode on daily basis without manual user executi |
|
We recommend the following settings:
|
|
We recommend the following settings:
|
|
|
|
|
|
```
|
|
```
|
|
0 5 * * * /path/to/spsp/spsp auto >> /path/to/spsp.log
|
|
0 5 * * * /path/to/spsp/spsp auto
|
|
```
|
|
```
|
|
|
|
|
|
This will launch the Transfer Tool at 5 AM every day of the week using the automatic mode and save the output inside a file called `spsp.log` (this will be the main log file).
|
|
This will launch the Transfer Tool at 5 AM every day of the week using the automatic mode and save the output inside a file called `spsp.log` (this will be the main log file).
|
... | @@ -64,16 +64,14 @@ In order, this is what happens: |
... | @@ -64,16 +64,14 @@ In order, this is what happens: |
|
1) Checks that the `.outbox`, `sent`, `viruses`, `bacteria` and `.logs` folders exist
|
|
1) Checks that the `.outbox`, `sent`, `viruses`, `bacteria` and `.logs` folders exist
|
|
2) Creates a log file using the current date inside `.logs` directory
|
|
2) Creates a log file using the current date inside `.logs` directory
|
|
3) Checks if the connection to SPSP works
|
|
3) Checks if the connection to SPSP works
|
|
4) Scans the two `viruses` and `bacteria` directories for any folder; if one is found, checks that it contains `.fastq` or `.fastq.gz` and `.xlsx` files at least
|
|
4) Scans the two `viruses` and `bacteria` directories for any folder; if one is found, checks that it is a supported format
|
|
5) Compresses the folder to tar.gz and move it to `.outbox` directory, then delete the initial folder
|
|
5) Compresses the folder to tar.gz and move it to `.outbox` directory, then delete the initial folder
|
|
6) Then for every file inside `outbox`, generates the hash of the file using SHA-256
|
|
6) Then for every file inside `outbox`, generates the hash of the file using SHA-256
|
|
7) Encrypts the file using the SPSP public key and delete the initial unencrypted compressed file
|
|
7) Encrypts the file using the SPSP public key and delete the initial unencrypted compressed file
|
|
8) Transfers `*.sha256` (hash) and `*.gpg` (encrypted tar.gz) files to the corresponding subdirectory (`viruses` or `bacteria`) on the remote server
|
|
8) Transfers `*.sha256` (hash) and `*.gpg` (encrypted tar.gz) files to the corresponding subdirectory (`viruses` or `bacteria`) on the remote server
|
|
9) (Optional) If you used the automatic mode with the `--no-archive` option, the sent files will not be moved to the `sent` folder and **will be erased**
|
|
9) (Optional) If you used the automatic mode with the `--no-archive` option, the sent files will not be moved to the `sent` folder and **will be erased**
|
|
|
|
|
|
If any error occurs during the process, the script will output the error in the log file inside the `.logs` directory and will automatically stop to avoid any more errors.
|
|
If any error occurs during the process, the script will output the error in the log file inside the `logs` directory and will automatically stop to avoid any more errors.
|
|
|
|
|
|
Keep in mind that in the CRON task, we are returning the output of the automatic mode of the script inside a file called `spsp.log`. This should be your starting point to check if any error occured. Then, you can check the log file inside the `.logs` folder for more information.
|
|
|
|
|
|
|
|
Also, be sure that when you copy the `fastq` or `fastq.gz` files inside the directory, the copy process should be completed before 5 AM (based on the recommended settings), or the script will send incomplete files.
|
|
Also, be sure that when you copy the `fastq` or `fastq.gz` files inside the directory, the copy process should be completed before 5 AM (based on the recommended settings), or the script will send incomplete files.
|
|
|
|
|
... | | ... | |