Backup discourse from the command line

where should I run this command? on my cloud server terminal or my local machine?
although either give me permission denied error