Hands-on task
rsync: mirroring the site directory
The site directory /var/www/shop has to be kept in a backup copy /mnt/backup/shop — the standby nginx serves the site straight from it. Open the Site tab above the terminal: it still shows Shop v1, the copy is stale — it has old versions of files and junk the site dropped long ago. Make /mnt/backup/shop an exact mirror of the site — the same contents, no extra files, the same permissions. Then reload the Site tab.
- rsync
- --delete
- mirroring
- trailing slash
- file permissions