Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 666 Bytes

File metadata and controls

25 lines (21 loc) · 666 Bytes

Perform an automatic backup of WikiJS Deployment.

Copy backup script.

cp -a wikijs-deployment-backup.sh /usr/bin/
chmod +x /usr/bin/wikijs-deployment-backup.sh

Update the configuration path in the backup script.

Update following in /usr/bin/wikijs-deployment-backup.sh

WIKIJS_DEPLOYMENT_DIR="${HOME}/wikijs-deployment"
WIKIJS_DEPLOYMENT_BACKUP_PATH="${HOME}/wikijs-deployment-backup"

Copy systemd unit and timer files.

cp wikijs-deployment-backup.timer wikijs-deployment-backup.service /etc/systemd/system/

Enable the timer.

systemctl daemon-reload
systemctl enable --now wikijs-deployment-backup.timer