Closed dalazx closed 5 years ago
2\. Should the upload job be unnamed?
At least at the time of developing it helped that the job has constant name.
Even after making the job name containing a variable part, the constant part will be descriptive. It will help to distinguish such jobs from jobs ran by the user.
neuro storage load SOURCE DESTINATION
unconditionally copies the source directory contents to the specified destination directory.neuro storage sync SOURCE DESTINATION
copies only the file difference between the source and the destination directories. These commands should not support storage: to storage: and file: to :file source and destination pairs.Both commands should implement the following strategy:
access_key
andsecret_key
can be equal and should be generated in run time.uuid4
should be enough I guess. the storage URI in the volume should be equal to the one set in the source or destination arguments.Inside the upload job we need to create a symlink in /mnt
because Minio requires an existing bucket and does not support cross-device mounts:
Wait until the job is running;
Run a docker container locally:
access_key
andsecret_key
should be the ones generated previously. The volume source path should be equal to the one specified in the source or destination arguments.Depending on the neuro command, run the following commands inside the container: 4.1. for
neuro storage load SOURCE DESTINATION
, run:4.2. for
neuro storage sync SOURCE DESTINATION
, run:Wait until the container finishes;
Remove the symlink in the upload container;
Kill the upload job.
Questions
exec
until these are implemented.