Supprimer Rendre public Rendre privé Add tags Delete tags
  Ajouter un tag   Annuler
  Supprimer le tag   Annuler
  • • DevOps notes •
  •  
  • AI
  • Tags
  • Connexion

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 Permalien
cluster icon
  • Alias and command history : alias l="ls -al" → define alias unalias l → remove alias Persistent Alias Config User-specific: ~/.bashrc Global: /etc/bashrc Add: alias l="ls -a...
  • Crontab / at : Crontab Basics crontab -e → edit crontab crontab -l → list crontab entries crontab -r → remove crontab entries systemctl status crond → check crond s...
  • Package Management : System Updates & Software Install dnf (yum) → RedHat → /etc/yum.repos.d apt-get → Debian rpm → RedHat package management standalone package to ...
  • Navigating File System / Linux filetypes : ls -l → List pwd → Print working directory dr-xr-xr-x | directories -rw-r--r-- | file Linux File Types Symbol Type - Regular file d Dire...
  • System information, root recovery, environment variables, shortcuts : Finding System Information cat /etc/redhat-release → Red Hat version uname -a → Linux hostname, kernel, architecture dmidecode → hardware, BIOS, syst...


(110)
Filtrer par liens sans tag
Replier Replier tout Déplier Déplier tout Êtes-vous sûr de vouloir supprimer ce lien ? Êtes-vous sûr de vouloir supprimer ce tag ? Le gestionnaire de marque-pages personnel, minimaliste, et sans base de données par la communauté Shaarli