[英]Move multiple file from one directory to another on remote sftp server
[英]Check remote directory size before file transfer in SFTP
在使用 SFTP 傳輸文件之前,我必須檢查遠程目錄大小。 請幫助如何實現? 僅當遠程目錄大小小於定義的閾值時,我才會傳輸文件。
您可以運行以下命令
ssh USER@SERVER du -bs "/path/to/remote/directory"
並捕獲其輸出。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.