Delete Set public Set private Add tags Delete tags
  Add tag   Cancel
  Delete tag   Cancel
  • • DevOps notes •
  •  
  • AI
  • Tags
  • Login

Ftp Scp Rsync/shaare/-gG-HQ

  • linux
  • linux

FTP

Install FTP server

  • yum install vsftp

  • nano /etc/vsftpd/vsftpd.conf

    • anonymous_enable=NO
  • Uncomment:

    • ascii_upload_enable
    • ascii_download_enable
    • ftpd_banner
  • Add: use_localtime=YES ⚠ bug

  • systemctl start vsftpd

  • systemctl enable vsftpd

  • systemctl stop firewalld

  • systemctl disable firewalld

FTP client

  • ftp 192.168.0.201

    • bi → switch to binary mode
    • hash → hash mark printing
    • put myfile → upload file
    • bye → 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/
8 months ago Permalink
cluster icon
  • Basic File Commands / File Search Commands : touch one two three → Create 3 files mkdir folder → Make directory mv -R / cp -R → Move or copy folder including subfolders find . -name "geor...
  • Tuned : Tweaks with Tuned / Podman Tweaks with Tuned systemctl enable tuned tuned-adm active check which profile is active tuned-adm list list all prof...
  • Crontab / at : Crontab Basics crontab -e → edit crontab crontab -l → list crontab entries crontab -r → remove crontab entries systemctl status crond → check crond s...
  • Apache and Nginx : Apache Web Server dnf install httpd nano /etc/httpd/conf/httpd.conf nano /var/www/html/index.html systemctl restart httpd systemctl stop firewalld N...
  • SSH and DNS : SSH ps -ef | grep sshd → check ssh systemctl status sshd DNS PTR record → IP to hostname A record → hostname to IP CNAME record → hostname to...


(97)
Filter untagged links
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community