[root@localhost Desktop]$ tar zcf etc.tar.gz /etc
[root@localhost Desktop]$ mv etc.tar.gz /mnt
2.複製server主機中的etc.tar.gz到desktop主機的/mnt中
[root@localhost Desktop]$ tar zcf etc.tar.gz /etc
[root@localhost Desktop]$ scp etc.tar.gz [email protected]:/mnt
3.同步server主機中的/etc中的所有文件到desktop主機的/mnt中,包含鏈接文件
[root@localhost Desktop]$ rsync -rl etc.tar.gz [email protected]:/mnt