Knowledge

How to backup and restore your Buddy Enterprise installation

Perform backup

Performing a backup will create a tar.gz archive with all repositories and databeses of your Buddy Enterprise installation.

  1. Log in to the machine where Buddy Enterprise is installed
  2. If the app is running, halt it with

    buddy stop
    
  3. To perform the backup, run

    buddy backup
    
Performing backup of self-hosted installation
Performing backup of self-hosted installation

NOTES:

  • Each execution will create a new archive.
  • The name of the archive is a unix timestamp describing the time of creation.
  • Backups are made to the application directory (default location: ~/.buddy/app/backups). If you're running out of space, you can move the whole directory to another location.

Configure recurrent backups

If you're a Linux or Mac OS user, you can use a cron to perform automatic backups (on Windows you can do the same with Task Scheduler). Here's an example cron that will make a backup of your app once a day at 12.00 PM.

Execute crontab -e to open the editor and type

0 0 * * * ~/.buddy/app/backups/backup.sh

Contents of backup.sh:

buddy --yes stop
buddy --yes backup
buddy --yes start

Restore application from backup file

In order to restore your instance run

buddy restore

Provide the path to your backup file or hit enter to restore the last file from the default backup directory:

Restoring installation from backup file
Restoring installation from backup file

NOTES

  • The command will restore installation from the latest backup file saved to the data path file
  • Backups are made to the application directory (default location: ~/.buddy/app/backups). If you're running out of space, you can move the whole directory to another location using Buddy CLI.

Get started now

14 days of unlimited trial. No credit card required.