Command:
rsync -az -e ssh --delete --progress --stats /var/mysource123 username123@remote-domain.tld:/var/mytarget123/
Command:
rsync -az -e ssh --delete --progress --stats /var/mysource123 username123@remote-domain.tld:/var/mytarget123/
Um einen Ordner mit Millionen von Dateien zu löschen
mkdir my_tmp_empty_dir && rsync -a --delete my_tmp_empty_dir/ very_big_dir_to_delete/
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
Sync Backup (wichtig: backup/ => backup) :
find ./ordner-alt/ -mtime -10 -name '*.jpg' -exec cp -av "{}" ./backup/ \;-name '*.jpg' kann man weg lassen, wenn man nicht nur jpg Dateien kopieren möchte
cp -av wird jeden Kopiervorgang zeigen, stattdessen kann man cp -a nehmen, wenn es leise laufen sollte
rsync -r -a -v -e ssh --delete root@remote-server.example.com:/userdir123/backups /local-server-path/backups/--delete wird Dateien und Ordner auf lokalen Server löschen, die auf den Remote-Server nicht mehr verfügbar sind.
Wenn man Inhalt von Ordner_B(Ziel) mit Inhalt von Ordner_A(Quelle) überschreiben möchte:
rsync -a Quelle_mit_Ordner_und_Dateien/ Ziel_Ordner/
Mit diesem Befehl kann man es hinkriegen:
rsync -av --ignore-existing alteOrdner/ neueOrdner/
Neueste Kommentare
Try this:1. Go to Tools &…
Try this:
Alternative (without warnings like "no crontab for user")
Alternative (without warnings like "no crontab for dovecot") to see all tasks:
php 8.3 apcu
php 8.3 apcu failed
über Plesk hat es geklappt.
phpize failed error?
install:
# sudo apt install php-devphpize
# sudo apt install…
phpize
# sudo apt install php-devdetails
Problem:
/opt/plesk/php/8.3…
Problem:
Problem:PHP APCu caching…
Problem:
Hilft "cp -avf old new && rm…
Hilft "
cp -avf old new && rm -rvf old"nicht?Same with Drush 13 + PHP 8.3 and my Solution
Same with Drush 13 + PHP 8.3
Error : Failed to install the required package 'RPM' by using AP
Initializing...
Error : Failed to install the required package 'RPM' by using APT. Please install it manually.
Exit
Solution: