I am using azure-storage-azcopy sync to sync between source and destination. This already works ok so far but often I receive empty files on source folder and that also gets copied to destination. How can I check and filter out blank/empty files and skip them from being copied to destination azure storage?
Below command is the one am using so far:
./azcopy sync "/sftp/sourceFolder" "https://mypersonal.blob.core.windows.net/payment" --recursive=false --include="PPP*.*.pgp"
Probably any shell script can also work but I have no idea on it how to achieve this.
Please help.
 
                        
AFAIK, there is no direct command to exclude empty files by size using
azcopy synccommand.Instead, you can use the below shell script which creates an
emptyas folder and in the second line it filters empty files and moves the empty files toemptyfolder after moving you can able to sync between source and destination without empty files.sync.shOutput:
Portal: