How to backup your whole website program on centos7 and nginx server as soon as possible?Just follow this step by step tutorial

Step 1.  Login your server via terminal , I use ssh , so I typed 
ssh root@  your.server.ip.here


Step 2. My website program folder  in /user/local/openresty/ningx/html/. So I typed this command in my terminal .If you use 

nginx and apache , just make sure your folder dirctory is correct.
tar -zcvf html.tar.gz /usr/local/openresty/nginx/html/*


step 3.  your server would begin to backup automatically ,keep wait until terminal show hashtag #  again. And then you would find html.tar.gz in your server root directory



屏幕快照_2019-03-11_下午7.25_.04_.png






step 4. Now ,you can use Transmit or Yummy Ftp server tools to download to your local computer.
1
Donate 11-03-19

1 comments

I always use dump commands

If you wanna get more accurate answers,Please Login or Register