Discussion:
[S3tools-general] s3cmd excluding folders
Ramon Smits
2015-10-01 08:44:34 UTC
Permalink
I'm trying to exclude folders during a sync and I want folders the
following folder names to be excluded:

.DS_Store
@eaDir


Some possible folders:


/diskstation/photo/@eaDir
/diskstation/photo/holidays/@eaDir/***@SynoEAStream


I do know that S3 does not have the concept of folders but I can't seem to


I tried this:

s3cmd sync --exclude '@eaDir' --exclude '.DS_Store'
s3://[bucket]/diskstation/photo/ /Volumes/photo/


and this:

s3cmd sync --exclude '@eaDir/' --exclude '.DS_Store/'
s3://[bucket]/diskstation/photo/ /Volumes/photo/



This does not seem to be correct.


Does exclude only work with file names?




-- Ramon
Ramon Smits
2015-10-01 09:33:37 UTC
Permalink
Sorry for the question, I resolved it as it seems I had to include wildcard:


s3cmd sync --exclude '@eaDir/*' --exclude '.DS_Store/*'
s3://[bucket]/diskstation/photo/ /Volumes/photo/



That works!

-- Ramon
Post by Ramon Smits
I'm trying to exclude folders during a sync and I want folders the
.DS_Store
@eaDir
I do know that S3 does not have the concept of folders but I can't seem to
s3://[bucket]/diskstation/photo/ /Volumes/photo/
s3://[bucket]/diskstation/photo/ /Volumes/photo/
This does not seem to be correct.
Does exclude only work with file names?
-- Ramon
Loading...