AaronV77 / Monday

Scripts that create aliases in order to be able to push and pull from a central storage server that you can have at home.
GNU General Public License v2.0
0 stars 0 forks source link

Efficieny #6

Closed AaronV77 closed 5 years ago

AaronV77 commented 5 years ago

The scripts are rather slow when it comes to bigger files / folders, so I want to make sure that we are doing everything in the easiest / fastest way possible. If there is one ssh / scp / sftp call that we can nock out, then it will be a lot more efficient.

AaronV77 commented 5 years ago

Just found a spot in the pull script that I didn't really have to be compressing. There was no point in compressing a single file to then have to uncompress on the server. So, I just transferred the file to the server and did an 'ls' on it and then removed the file.

AaronV77 commented 5 years ago

BUG: I found a bug in the pull script and fixed it. I have never tested the pull script with trying to pull with the directory already in place. I don't think..

AaronV77 commented 5 years ago

I was able to remove a scp command in the pull.sh script and removed a lot of unnecessary code. With supporting tunnel recycle and minimal scp and ssh commands, I think the scripts will not get any more efficient. I'll reopen this issue if I find an update that increases the overall performance.