Laravel Backup with Bash
Learn how to backup Laravel to Filebase using Bash.
What is Laravel?
1. Start by installing the S3cmd tool on your Laravel server with the following commands:
2. Verify S3cmd was installed correctly using the following command to display the installed version:
3. Next, configure S3cmd for use with Filebase:
4. Test your configuration using the following command:
5. Next, login to your Laravel server’s MariaDB instance with the following command:
6. Then, backup the Laravel database with the following command:
7. Run the following S3cmd command to copy the Laravel.sql file into your Filebase bucket:
8. Then, run another S3cmd command to copy your Laravel website data into your Filebase bucket as well:
9. Verify that all files have been uploaded correctly using the following command:
Last updated