How can I copy out all the file data and databases for all users in a single go?

How can I copy out all the file data and databases for all shell users in a single go?

I want to do something akin to a Google take out on all the users accounts.

Is there some ready made script or utility for doing that, or I will have to do an SSH transfer for each account to the target locations separately?

There are quite a number of accounts.

All users created under an account share a common group. If the directories and files under each user are set group readable then you can programatically list and traverse directories and pull their files from a single ssh login.

For databases you can connect from any ssh session using the correct dbuser/dbpass, issue a mysqldump command and .zip or .tar.gz the results ready for transfer.

The Panel has a “Backup Your Account” page, that allows you to download everything (users/mail/DBs) in one go:

https://panel.dreamhost.com/index.cgi?tree=billing.backup