Get Directory Size through SFTP
- by Nongo
A client has a managed websever; on this server is an e-commerce script and part of the script dumps a backup every week. The backup is stored on the web server (not in the HTTP route). The ISP takes a copy, and my clients wants to take a copy too.
What I am trying to do is before downloading the file I want to be able to calculate the backup directory size - but the only access I have is through SFTP. Is it possible to easily get the directory size and then use this in a PowerShell Script.
NOTE: I have written an automatic download script in Powershell, and I want to extend this.
Forgive me if this sounds vague I can provide further info if you have any specific questions.