使用rsync备份文件

[[email protected]_abc ~]# yum install rsync
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package rsync.x86_64 0:3.0.9-18.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================
Package Arch Version Repository Size
=========================================================================
Installing:
rsync x86_64 3.0.9-18.el7 base 360 k
Transaction Summary
=========================================================================
Install 1 Package
Total download size: 360 k
Installed size: 732 k
Is this ok [y/d/N]: y
Downloading packages:
rsync-3.0.9-18.el7.x86_64.rpm | 360 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : rsync-3.0.9-18.el7.x86_64 1/1
Verifying : rsync-3.0.9-18.el7.x86_64 1/1
Installed:
rsync.x86_64 0:3.0.9-18.el7
Complete!
[[email protected]_abc ~]#
[[email protected]_abc ~]# rsync --help
Usage: rsync [OPTION]... SRC [SRC]... DEST
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X)
-P same as --partial --progress
[[email protected]_abc ~]# rsync -Pa /var/www/blog/ /oss/ecs_blog_backup/
sending incremental file list
#...省略很多字...
wp-includes/widgets/class-wp-widget-tag-cloud.php
5668 100% 7.95kB/s 0:00:00 (xfer#3356, to-check=1/3885)
wp-includes/widgets/class-wp-widget-text.php
20735 100% 15.16kB/s 0:00:01 (xfer#3357, to-check=0/3885)
sent 68852411 bytes received 65906 bytes 113820.51 bytes/sec
total size is 68617955 speedup is 1.00
[[email protected]_abc ~]#

0 Comments

发表评论

电子邮件地址不会被公开。 必填项已用*标注