Mostly backup command in linux use tar command and if you want to backup directory and not need several sub-directory in root directory, you can use this
tar -cvzfp ./dirctoryname-backup.tar.gz --exclude=/folderA/foldera
Mostly backup command in linux use tar command and if you want to backup directory and not need several sub-directory in root directory, you can use this
tar -cvzfp ./dirctoryname-backup.tar.gz --exclude=/folderA/foldera