Here's an outline of the instructions for creating a local dev copy of our MODX installation:
####1. Package and download files from server
You'll want to tar and gzip the files on the server for two reasons. First and foremost, it will be faster when you download the files via FTP. Downloading one 100mb file is significantly faster than downloading one hundred 1mb files. Secondly, we want to avoid the potential of messing with hidden files and permissions/ownership.
Use the tar
command with gzip enabled: tar -czvf path_to_target path_to_source
. For example, to package up the assets directory, you might run tar -czvf backup/assets.tar.gz assets/
. This will package and compress the assets directory and save it as a .tar.gz file in the backup directory. You can then download that file via Transmit or another FTP client.
####2. Dump production database and import to local database
Use Sequel Pro to export the production database and import it locally. You can name the local database whatever you'd