rsynch & ssh : Upload (Files & Directories) to Remote Server

Wenn man mehrere Dateien und Ordner sicher hochladen möchte:

rsync -avH /var/my/local/directories/ -e ssh remote-username@remote-server.example.com:/var/www/vhosts/remote_directory_example1

 

Comments

rsync -avH /var/my/local/directories/ -e ssh --password-file=<(echo "9876543210") remote-username@remote-server.example.com:/var/www/vhosts/remote_directory_example1

Remote Upload & Sync (without password prompt) 

 

SSH Key 

 
ssh-keygen

 

Copy SSH Key to Remote Server

 
ssh-copy-id -i ~/.ssh/id_rsa.pub user123@remote-host-or-ip.com

 

Sync Files & Directories

 
rsync -avz -e ssh  /var/www/vhosts/my-local-server1.com/backup/mysql user123@my-remote-server.com:/var/www/vhosts/example.com/backup/

 

my_rsync.sh

#!/bin/bash

rsync -avz -e ssh  /var/www/vhosts/my-local-server1.com/backup/mysql user123@my-remote-server.com:/var/www/vhosts/example.com/backup/

 

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare

  • 1 week 3 days ago
    Failed to authenticate on SMTP server with username gmail.com using the following authenticators: "LOGIN", "PLAIN", "XOAUTH2". Authenticator "LOGIN" returned "Expected response code "235" but got code "535",

    Update two fields (blob) in Table "config"!

    Search 'name': 

    1. smtp.settings 
    2. symfony_mailer.mailer_transport.smtp

     

     

  • 3 weeks 1 day ago
    The following embed button(s) are not using SVG icons and will not be compatible with CKEditor5

    Admin:

    • /admin/config/content/embed/button/manage/media
    • /admin/config/content/embed

     

    Convert PNG to SVG & Upload!

  • 3 weeks 5 days ago
    The following Apache modules are disabled on the destination server: security2.

    ModSecurity install & config & activate

  • 2 months 1 week ago
    TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

    Das geht auch:

          $this->operator = $break->operator ?? '' ;
  • 2 months 3 weeks ago
    Bootstrap 5 subtheme is not properly configured. This may be caused by a problem with file or directory permissions.
  • 2 months 1 week ago
    TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

    It works too:

    • web/core/modules/views/src/Plugin/views/argument/NumericArgument.php 

    Line 63, 96 :

  • 3 months ago
    Site URI : http://default (Drupal, how2 update config?)

    Add this line to drupalroot/vendor/drush/drush/drush.yml

  • 4 months 1 week ago
    Webserver CPU Performance Test mit PHP

    Time: 0,19 

    CPU: AMD Ryzen 7 PRO 3700 8-Core Processor

  • 5 months 3 weeks ago
    TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

    Line 63, 99 :

  • 6 months 3 weeks ago
    Drupal + Basic_Auth Problem : You do not have permission to access this page (Sie haben keine Zugriffsberechtigung für diese Seite. )

    My problem was: