Skip to content

awais-vteams/backup-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Backup Project / Folder

Backup PHP | Laravel OR any Project folder with MySQL Database Dump

Change path and databse config in backup.sh

DIRNAME=/var/www/html/project
DBUSER=root
DBPASSWORD=password
DBNAME=project

It will generate .tar.gz file with dump.sql

Usage

$ sh backup.sh

Or set in crontab

# Every day at midnight

0 0 * * * /bin/sh /path/to/backup.sh

About

Backup PHP | Laravel OR any Project with MySQL Database

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages