We’re working on a project that will be on local and we wanna make a daily backup and we wanna it to be on hosting or server.
Thanks
We’re working on a project that will be on local and we wanna make a daily backup and we wanna it to be on hosting or server.
Thanks
2
Answers
Using mysql you can run
mysqldump -u root -h localhost -pmypassword database | gzip -9 > database-db.sql.gz
.Pre-install locally or on the server
sudo apt-get install mysql-client
if you are using cloud services like s3 – s3-backups
This Laravel package creates a backup of your application. The backup is a zip file that contains all files in the directories you specify along with a dump of your database. The backup can be stored on any of the filesystems you have configured in Laravel like Amazon S3. You can also install third-party drivers that are compatible with Laravel Filesystem or create your own. You can clean up old backups and schedule the tasks on a daily basis for the backup to be done.