Edit your ~/.homestead/Homestead.yaml (or your local Homestead.yaml if you use a per-project installation):
folders: - map: "~/HomesteadBackup" to: /home/vagrant/backup
vagrant reload — provision
Then edit after.sh
Credits to : https://gilbert.pellegrom.me/backing-up-laravel-homestead-databases-ca0cf5ff2a0a