Skip to content

kamilkobak/backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Backup scripts

Backup of all MySQL databases in separate files.

  1. Download mysql_backup.sh
mkdir /root/bin/
cd /root/bin
wget https://raw.githubusercontent.com/kamilkobak/backup/master/mysql_backup.sh
chmod +x mysql_backup.sh
  1. Add to cron
crontab -e

and add:

59 23 * * * /root/bin/mysql_backup.sh >/dev/null 2>&1

Backup of all PostgreSQL databases in single file.

  1. Download 'postgresql_backup.sh'
mkdir /root/bin/
cd /root/bin
wget https://raw.githubusercontent.com/kamilkobak/backup/master/postgresql_backup.sh
chmod +x postgresql_backup.sh
  1. Add to cron
crontab -e

and add:

59 22 * * * /root/bin/postgresql_backup.sh >/dev/null 2>&1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages