Ftp Scp Rsync/shaare/-gG-HQ
FTP
Install FTP server
-
yum install vsftp -
nano /etc/vsftpd/vsftpd.confanonymous_enable=NO
-
Uncomment:
ascii_upload_enableascii_download_enableftpd_banner
-
Add:
use_localtime=YES⚠ bug -
systemctl start vsftpd -
systemctl enable vsftpd -
systemctl stop firewalld -
systemctl disable firewalld
FTP client
-
ftp 192.168.0.201bi→ switch to binary modehash→ hash mark printingput myfile→ upload filebye→ quit
SCP → FTP secure
- Secure copy protocol
-
scp myfile username@192.168.0.1:/home/user- password
- done!
RSYNC → Remote synchronization
- Compare & combine
Rsync local machine (file)
tar cvf backup.tar
mkdir /tmp/backups
rsync -zvh backup.tar /tmp/backups
Rsync local dir
rsync -azvh /home/user /tmp/backup
Rsync to a local machine (file)
mkdir /tmp/backups # on remote
rsync -avz backup.tar user@192.168.0.100:/tmp/backups
Rsync from a local machine
touch serverfile
rsync -avzh user@192.168.0.100:/home/user/serverfile /tmp/
(97)