Selected from Linux Selected from PHP
- Ubuntu 17.10 Install google's mod pagespeed for apache - PHP-Ubuntu-Youtube-dl simple script for converting and downloading youtube video or mp3
- Ubuntu SSH tunnel via proxy - PHP while loop with every row with a different color
- Install GoAccess Apache Log Analyzer Tool on Ubuntu 17.10 - PHP use while loop in function
- SSHFS and map folder with a proxy - PHP List Files And Folders As links
- How to connect to SSH server with a proxy - PHP Extract Text From String
➥ Rsync - autoincrement архив
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Това е най-простия синтаксис  за архивиране от този тип.
rsync -uaq /var/www  /media/storage


Ако искате двете папки да са синхронизирани т.е ако от едната изтриете нещо то и в другата да го няма командата е:
rsync -rtvu --delete /mnt/Storage1/ /mnt/Storage2/


Copy incremental and autodelete archive with no password with generated ssh keys
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub 10.20.6.30
rsync -rtvu --delete /var/www/html root@10.20.6.30:/var/www/



IF YOU HAVE A PROBLEM WITH THE SSH KEYS:
Enter pass phrase for /root/.ssh/id_rsa:

the solution is:

rm -rf /root/.ssh/*.*
ssh-keygen
chmod 600 /root/.ssh/id_rsa
openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new
cp ~/.ssh/id_rsa ~/.ssh/id_rsa.backup
rm ~/.ssh/id_rsa
cp ~/.ssh/id_rsa_new ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa

@All rights reserved with Copyright Webleit.info 2018 by Sonik_Blast [ Site Map ] [ RSS ] [ YouTube Mp3 Downloader and converter ]