I am getting a bunch of TBs of data files from a remote read-only tape archive into my work directory on my working Linux cluster. Unfortunately I am not allowed to install expect on the computer I am working with. I would like to write a command by which I can submit a slurm job that gets my files through sftp. I need the following sequence
sftp user@remote.server
enter the password: "my_password"
cd /source/folder/where/files/are
set destination folder (if necessary)
get data_files_*.nc
Important is that, it takes days to get this amount of data and I would like to use slurm job option to save time and continuously get the files and avoid keeping connected to the remote server through my laptop the whole time. Any ideas and suggestions are appreciated :)