Backup and Restore¶
The storage/ folder is your only source of Cache. Losing it means having to download all packages again from scratch. For this reason, especially when you're using the "shared central server" pattern (see team-setup), taking periodic Backups is essential.
Taking a Backup¶
This command creates a compressed file named backups/storage-YYYYMMDD-HHMMSS.tar.gz.
It's recommended to set up this command as a daily or weekly Cron Job on the server, for example:
You can also copy the files inside backups/ to an external destination (such as another disk or Cloud Storage) so that data remains available even if the entire server is lost.
Restore¶
This command:
- Stops the Verdaccio service
- Deletes the current
storage/folder - Extracts the selected Backup
- Brings the service back up
Checking Server Health¶
This command shows the container status, Registry availability, and the current size of storage/. You can use it for simple monitoring or manual alerting.