Skip to content

Couapy/backup-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backup-data

This backup tool was developed to keep the database and files safe.

Backup files are saved in the /backup directory by default.

Configuration

  1. First of all, edit database configuration in the config/mysql.conf file following this documentation.
  2. List directories and files that need to be save in config/files.list.
  3. Edit backup.sh and edit configuration variables in the head of the file.

Manual backup

To start a backup just run :

cd path-to/.../backup-data/
sh backup.sh

Automatic backup

cron is perfect for your job. Just a simple example (at 04:00 on Monday) :

0 6 * * *   root    /usr/bin/bash /path-to/.../backup.sh

Releases

No releases published

Languages