You are hereArchiving your files for migration /with folder exclussion
Archiving your files for migration /with folder exclussion
If you need to archive your files and you want to exclude some folders, for example "files" folder or some subfolders of files. You can use gzip for it
tar --exclude=sites/default/files/* --exclude=cache/* -cf file.tar . && gzip file.tar
And you will have a nice zip archive without folders you maybe don't want to transfer.