mysqldump -uroot -p astercc10 | gzip > astercc_db.sql.gzSystem will prompt for database root password, you can find it in /etc/astercc.conf if you don't know.
mysqldump -h127.0.0.1 -uroot -p astercc10 | gzip > astercc_db.sql.gz
sudo tar czfP astercc_files.tar.gz /etc/asterisk /etc/astercc.conf /opt/asterisk/scripts/astercc /var/lib/asterisk /var/spool/asterisk /var/www/html
Now you have two files astercc_db.sql.gzip and astercc_files.tar.gz, you can download via ftp/sftp tools, or move the file to http folder so you can download from browser
sudo mv astercc_files.tar.gz astercc_db.sql.gzip /var/www/html/asterCC/app/webroot/Then you can download by visiting
http://your ip/astercc_files.tar.gz
and
http://your ip/astercc_db.sql.gzip