Plone 5.2 CMS Setup packing and backup
Set up packing and backup We want the Zope database to be packed weekly. We’ll do so by setting up a cron job:
sudo nano /etc/cron.d/zeopack
Add the contents:
0 22 * * 5 plone_daemon /usr/local/Plone/zeocluster/bin/zeopack
And save. Pick a time when your system can take some extra load. Don’t use the day/time above.
Let’s also create a daily snapshot of the database:
sudo nano /etc/cron.d/plonebackup
Add the contents below, adjust the time, and save:
0 0 * * * plone_daemon /usr/local/Plone/zeocluster/bin/snapshotbackup
This snapshot will give you a stable copy of the database at a particular time. You’ll need a separate strategy to backup the server’s file system, including the snapshot.