当前位置: 首页 > 工具软件 > ZBackup > 使用案例 >

zbackup

葛修永
2023-12-01
groupadd zbackup
groupadd mysql
groupadd nginx
useradd -m -g zbackup zbackup
useradd -m -g mysql mysql
useradd -m -g nginx nginx



[root@slave01 zbackup]# 
[root@slave01 zbackup]# 
[root@slave01 zbackup]# su root
[root@slave01 zbackup]# 
[root@slave01 zbackup]# groupadd zbackup
[root@slave01 zbackup]# groupadd mysql
[root@slave01 zbackup]# groupadd nginx
[root@slave01 zbackup]# useradd -m -g zbackup zbackup
[root@slave01 zbackup]# useradd -m -g mysql mysql
[root@slave01 zbackup]# useradd -m -g nginx nginx
[root@slave01 zbackup]# 
[root@slave01 zbackup]# 



[zbackup@slave01 Desktop]$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:4D:7C:18  
          inet addr:192.168.1.252  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2409:8a34:2067:1c90:20c:29ff:fe4d:7c18/64 Scope:Global
          inet6 addr: fe80::20c:29ff:fe4d:7c18/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:424 errors:0 dropped:0 overruns:0 frame:0
          TX packets:115 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:30071 (29.3 KiB)  TX bytes:8258 (8.0 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:480 (480.0 b)  TX bytes:480 (480.0 b)

[zbackup@slave01 Desktop]$ 



[root@slave01 zbackup]# ll
total 1190668
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Desktop
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Documents
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Downloads
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Music
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Pictures
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Public
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Templates
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Videos
-rwxr-xr-x 1 zbackup zbackup 613843284 Jan 20 03:30 ZBackupSystem_v1.0.0.584_20220120.sh
-rwxrw-rw- 1 root    root    605353938 Jan 21 17:54 ZBackupSystem_v1.0.0.584_20220120.tar.gz
[root@slave01 zbackup]# 
[root@slave01 zbackup]# sh ZBackupSystem_v1.0.0.584_20220120.s
sh: ZBackupSystem_v1.0.0.584_20220120.s: No such file or directory
[root@slave01 zbackup]# sh ZBackupSystem_v1.0.0.584_20220120.sh
******************************************************
         Welcome to Install Backup Server
******************************************************
Are you wish to continue? Y/N:
Y
******************************************************
Please Input Server IP Address:
192.168.1.252






[root@slave01 zbackup]# ll
total 1190668
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Desktop
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Documents
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Downloads
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Music
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Pictures
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Public
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Templates
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Videos
-rwxr-xr-x 1 zbackup zbackup 613843284 Jan 20 03:30 ZBackupSystem_v1.0.0.584_20220120.sh
-rwxrw-rw- 1 root    root    605353938 Jan 21 17:54 ZBackupSystem_v1.0.0.584_20220120.tar.gz
[root@slave01 zbackup]# rpm -e ZBackupSystem_v1.0.0.584_20220120 --nodeps


[zbackup@slave01 ~]$ rpm -qa|grep -i zbackup
[zbackup@slave01 ~]$ ll
total 1190732
-rw-rw-r-- 1 zbackup zbackup     32173 Jan 23 02:47 1.txt
-rw-rw-r-- 1 zbackup zbackup     31671 Jan 23 02:46 1.txt~
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Desktop
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Documents
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Downloads
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Music
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Pictures
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Public
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Templates
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Videos
-rwxr-xr-x 1 zbackup zbackup 613843284 Jan 20 03:30 ZBackupSystem_v1.0.0.584_20220120.sh
-rwxrw-rw- 1 root    root    605353938 Jan 21 17:54 ZBackupSystem_v1.0.0.584_20220120.tar.gz




[zbackup@slave01 ~]$ cd /usr/local/zbackup
[zbackup@slave01 zbackup]$ ll
total 44
-rw-r--r--  1 zbackup zbackup   46 Jan 20 03:26 Build-Release
drwxr-xr-x 10 zbackup zbackup 4096 Jun 27  2021 client
drwxr-xr-x 11 zbackup zbackup 4096 Jun 27  2021 master
drw-r--r-- 12 zbackup zbackup 4096 Jul 19  2021 nginx
drw-r--r-- 11 zbackup zbackup 4096 Jul 19  2021 php
drwxr-xr-x  8 zbackup zbackup 4096 Sep  4 09:05 server
drwxr-xr-x  9 zbackup zbackup 4096 Jun 27  2021 storage
-rwxr-xr-x  1 zbackup zbackup  348 Jul 19  2021 uninstall.sh
drwxr-xr-x 10 zbackup zbackup 4096 Jun 27  2021 web
-rwxr-xr-x  1 zbackup zbackup 2522 Aug  3 07:51 zbackup.sh
drwxr-xr-x 11 zbackup zbackup 4096 Jun 27  2021 zbdb
[zbackup@slave01 zbackup]$ sh uninstall.sh 
Do you want to uninstall Backup Server? [Y/N]Y
Stopping the zbackup Client daemon
Stopping the zbackup Storage daemon
Stopping the zbackup Server daemon
/usr/local/zbackup/zbackup.sh: line 19: 24005 Terminated              ${BASEPATH}/server/scripts/zbserver.sh $1 $2
 ERROR! MySQL server PID file could not be found!
rm: cannot remove `/usr/local/zbackup/master/tools/bls': Permission denied
rm: cannot remove `/usr/local/zbackup/master/tools/bextract': Permission denied
rm: cannot remove `/usr/local/zbackup/master/tools/bscan': Permission denied
rm: cannot remove `/usr/local/zbackup/master/tools/bcopy': Permission denied
rm: cannot remove `/usr/local/zbackup/master/tools/btape': Permission denied
rm: cannot remove `/usr/local/zbackup/master/scripts/sendEMail.sh': Permission denied
rm: cannot remove `/usr/local/zbackup/master/scripts/master.sh': Permission denied
rm: cannot remove `/usr/local/zbackup/master/scripts/bconsole': Permission denied
rm: cannot remove `/usr/local/zbackup/master/bin/zbkmaster': Permission denied
rm: cannot remove `/usr/local/zbackup/master/bin/zbkconsole': Permission denied
rm: cannot remove `/usr/local/zbackup/master/conf/bconsole.conf': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libcomm.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libcommon.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libzbkproto.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libzbk.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libcloud_driver.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/liblog.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libmysqlclient.so.16': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libssl.so.1.0.0': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libmysqlclient_r.so.16.0.0': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libfind.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libssl.so.10': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libmysqlclient_r.so.16': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libcrypto.so.1.0.0': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libsqlite.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libdb.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libthread.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libaligned-driver.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libcrypto.so.10': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libmysqlclient.so.16.0.0': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/drop_mysql_tables': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/update_mysql_tables': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/zbackup.sql': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/grant_mysql_privileges': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/create_mysql_database': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/drop_mysql_database': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/make_mysql_tables': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/nginx.sh': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/sbin': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/proxy_temp': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/uwsgi_temp': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/html': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/logs': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/scgi_temp': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/client_body_temp': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/conf': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/lib': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/fastcgi_temp': Permission denied
rm: cannot remove `/usr/local/zbackup/php/sbin': Permission denied
rm: cannot remove `/usr/local/zbackup/php/php-fpm.sh': Permission denied
rm: cannot remove `/usr/local/zbackup/php/log': Permission denied
rm: cannot remove `/usr/local/zbackup/php/var': Permission denied
rm: cannot remove `/usr/local/zbackup/php/php': Permission denied
rm: cannot remove `/usr/local/zbackup/php/include': Permission denied
rm: cannot remove `/usr/local/zbackup/php/third_lib': Permission denied
rm: cannot remove `/usr/local/zbackup/php/etc': Permission denied
rm: cannot remove `/usr/local/zbackup/php/bin': Permission denied
rm: cannot remove `/usr/local/zbackup/php/lib': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/nginx.sh': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/sbin': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/proxy_temp': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/uwsgi_temp': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/html': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/logs': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/scgi_temp': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/client_body_temp': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/conf': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/lib': Permission denied
rm: cannot remove `/usr/local/zbackup/nginx/fastcgi_temp': Permission denied
rm: cannot remove `/usr/local/zbackup/php/sbin': Permission denied
rm: cannot remove `/usr/local/zbackup/php/php-fpm.sh': Permission denied
rm: cannot remove `/usr/local/zbackup/php/log': Permission denied
rm: cannot remove `/usr/local/zbackup/php/var': Permission denied
rm: cannot remove `/usr/local/zbackup/php/php': Permission denied
rm: cannot remove `/usr/local/zbackup/php/include': Permission denied
rm: cannot remove `/usr/local/zbackup/php/third_lib': Permission denied
rm: cannot remove `/usr/local/zbackup/php/etc': Permission denied
rm: cannot remove `/usr/local/zbackup/php/bin': Permission denied
rm: cannot remove `/usr/local/zbackup/php/lib': Permission denied
rm: cannot remove `/usr/local/zbackup/master/tools/bls': Permission denied
rm: cannot remove `/usr/local/zbackup/master/tools/bextract': Permission denied
rm: cannot remove `/usr/local/zbackup/master/tools/bscan': Permission denied
rm: cannot remove `/usr/local/zbackup/master/tools/bcopy': Permission denied
rm: cannot remove `/usr/local/zbackup/master/tools/btape': Permission denied
rm: cannot remove `/usr/local/zbackup/master/scripts/sendEMail.sh': Permission denied
rm: cannot remove `/usr/local/zbackup/master/scripts/master.sh': Permission denied
rm: cannot remove `/usr/local/zbackup/master/scripts/bconsole': Permission denied
rm: cannot remove `/usr/local/zbackup/master/bin/zbkmaster': Permission denied
rm: cannot remove `/usr/local/zbackup/master/bin/zbkconsole': Permission denied
rm: cannot remove `/usr/local/zbackup/master/conf/bconsole.conf': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libcomm.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libcommon.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libzbkproto.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libzbk.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libcloud_driver.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/liblog.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libmysqlclient.so.16': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libssl.so.1.0.0': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libmysqlclient_r.so.16.0.0': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libfind.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libssl.so.10': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libmysqlclient_r.so.16': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libcrypto.so.1.0.0': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libsqlite.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libdb.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libthread.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libaligned-driver.so': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libcrypto.so.10': Permission denied
rm: cannot remove `/usr/local/zbackup/master/lib/libmysqlclient.so.16.0.0': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/drop_mysql_tables': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/update_mysql_tables': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/zbackup.sql': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/grant_mysql_privileges': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/create_mysql_database': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/drop_mysql_database': Permission denied
rm: cannot remove `/usr/local/zbackup/master/db/make_mysql_tables': Permission denied
Backup Server has been uninstalled successfully!
[zbackup@slave01 zbackup]$ 


[root@slave01 zbackup]# CD /usr/local/zbackup/
bash: CD: command not found
[root@slave01 zbackup]# cd /usr/local/zbackup/
[root@slave01 zbackup]# ll
total 12
drwxr-xr-x  8 zbackup zbackup 4096 Jan 23 06:44 master
drw-r--r-- 12 zbackup zbackup 4096 Jul 19  2021 nginx
drw-r--r-- 11 zbackup zbackup 4096 Jul 19  2021 php
[root@slave01 zbackup]# pwd
/usr/local/zbackup
[root@slave01 zbackup]# 
[root@slave01 zbackup]# rm -rf /usr/local/zbackup
[root@slave01 zbackup]# ll
total 0
[root@slave01 zbackup]# cd /home/zbackup
[root@slave01 zbackup]# 
[root@slave01 zbackup]# ll
total 1190732
-rw-rw-r-- 1 zbackup zbackup     32173 Jan 23 02:47 1.txt
-rw-rw-r-- 1 zbackup zbackup     31671 Jan 23 02:46 1.txt~
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Desktop
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Documents
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Downloads
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Music
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Pictures
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Public
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Templates
drwxr-xr-x 2 zbackup zbackup      4096 Jan 23 01:52 Videos
-rwxr-xr-x 1 zbackup zbackup 613843284 Jan 20 03:30 ZBackupSystem_v1.0.0.584_20220120.sh
-rwxrw-rw- 1 root    root    605353938 Jan 21 17:54 ZBackupSystem_v1.0.0.584_20220120.tar.gz
[root@slave01 zbackup]# 
[root@slave01 zbackup]# sh ZBackupSystem_v1.0.0.584_20220120.sh 
******************************************************
         Welcome to Install Backup Server
******************************************************
Are you wish to continue? Y/N:
Y
******************************************************
Please Input Server IP Address:
192.168.1.252
Default Server Port:18087. Are you wish to change it? Y/N:
N
******************************************************
The Backup Server being installing...
Unpacking the installation package...
Check the installation environment.
Starting MySQL.. SUCCESS!  
Creation of zbackup database succeeded.
Creation of ZBackup MySQL tables succeeded.
Created MySQL database user: zbackup
Privileges for user zbackup granted on database zbackup.
Shutting down MySQL.. SUCCESS! 
Starting MySQL. SUCCESS! 
Starting the zbackup PHP daemon
/usr/local/zbackup/php/sbin/php-fpm: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/zbackup/php/third_lib/libX11.so.6)
/usr/local/zbackup/php/sbin/php-fpm: /lib64/libc.so.6: version `GLIBC_2.15' not found (required by /usr/local/zbackup/php/third_lib/libX11.so.6)
/usr/local/zbackup/php/sbin/php-fpm: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/zbackup/php/third_lib/libxcb.so.1)
Starting the zbackup Nginx daemon
Starting the zbackup Client daemon
Starting the zbackup Storage daemon
Starting the zbackup Master daemon
Starting the zbackup Server daemon
 SUCCESS! MySQL running (25267)
php-fpm is stopped
nginx (pid 25306 25303) is running...
zbkclient (pid 25311) is running...
zbkstorage (pid 25319) is running...
zbkmaster (pid 25338) is running...
zbserver (pid 25355) is running...
******************************************************
The Backup Server installation is complete!
[root@slave01 zbackup]# 

 类似资料:

相关阅读

相关文章

相关问答