Backing up an Elefant site is as simple as running the following command:
./elefant backup ~/backups/
This will generate a timestamped backup file, named in the form
The database backup can be found in the file
dump.sql in the backup file.
The backup file will be saved to the folder specified in the command, in this case
Here's an example crontab configuration for nightly backups at 2am:
0 2 * * * /var/www/elefant backup ~/backups/
Note: Make sure to change the path to match your website document root.
You can also export just the database with the following command:
./elefant export-db ~/exported.sql
This will create an
exported.sql file in your home folder containing your complete
database schema and content.
Next: Upgrading Elefant