Bash Tools
Backup Scripts
Scripts for backup files and MySQL databases.
-
backup.files.sh
-
-d 'DIR_1;DIR_2;DIR_3'
Directory list.
-
-
backup.mysql.sh
-
-u 'USER'
MySQL user name. -
-p 'PASSWORD'
MySQL user password. -
-d 'DB_1;DB_2;DB_3'
MySQL database list.
-
Syntax
./backup.files.sh -d '/home/dir_1;/home/dir_2;/home/dir_3'
- Backup directories
dir_1
,dir_2
anddir_3
.
./backup.mysql.sh -u 'db_user' -p 'db_password' -d 'db_name_1;db_name_2;db_name_3'
- Backup databases
db_name_1
,db_name_2
anddb_name_3
with usernamedb_user
and passworddb_password
.