Hands-on task
Mirror the site to a second disk
A second disk for backups has been attached to the server and mounted at /mnt/mirror. Make /mnt/mirror/shop an exact mirror of the site directory /var/www/shop: the contents match, file permissions are preserved, and everything that isn't in the source (leftovers of a previous deploy) is removed from the mirror.
- rsync -a
- --delete
- mirroring
- trailing slash
- backups