Skip to content

a simple bash script to run on a cronjob that will backup website files and databases

Notifications You must be signed in to change notification settings

xtarget/website-backups

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

website-backups

Bash Script to backup your website files and databases

##INSTALL:

  1. put the backup file into your scripts folder
  2. set the options: your database user, database password, folders to backup, databases to backup
  3. save your changes
  4. create a cronjob (crontab -e) and add something like one (or more) of the following:
#check on services
@hourly ~/.scripts/backups hourly
@monthly ~/.scripts/backup monthly
@yearly ~/.scripts/backup yearly

The script will get the frequency from the cronjob, and make a folder in your ~/.backups directory named after the frequency (daily, monthly, yearly)

About

a simple bash script to run on a cronjob that will backup website files and databases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%