Get Directory Size through SFTP

Posted by Nongo on Super User See other posts from Super User or by Nongo
Published on 2014-06-03T18:09:49Z Indexed on 2014/06/04 9:28 UTC
Read the original article Hit count: 119

Filed under:
|
|

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.

© Super User or respective owner

Related posts about backup

Related posts about powershell