1/8/2023 0 Comments Grsync help![]() Sudo rsync -avi -delete /media/sdb1/backups/www/ you are still getting prompted for a password, then you need to check your ssh configuration in /etc/ssh/sshd_config and verify that the users in source and target each have the others' respective public ssh key by sending each over with ssh-copy-id this is for using ssh key-pairs without a password, as an alternate approach, and not for passing the password over via a file. Sudo rsync -avi -delete /media/sdb1/backups/www/Įxecute this from the source machine, which sends from source to target backup: Rsync -av -delete -e 'ssh -p 59333 -i /home/user/.ssh/id_rsa' /home/user/Server/ if you are not using an alternate port for ssh, then consider the more elegant examples below:Įxecute this from the target backup machine, which pulls from source to target backup: BackupAssist comes packaged with the Rsync libraries necessary to transfer data to the Rsync Server during a backup. Rsync -av -delete -e 'ssh -p 59333 -i /home/user/.ssh/id_rsa' /home/keith/Server/Įxecute this from the source machine, which sends from source to target backup Do not pass the -delete option to rsync command as it delete extraneous files from destination directory. The official solution (and others) were incomplete when I first visited, so I came back, years later, to post this alternate approach in case any others wound up here intending to use a public/private key-pair:Įxecute this from the target backup machine, which pulls from source to target backup It tells rsync to remove from the sending side the files (meaning non-directories) that are a part of the transfer and have been successfully duplicated on the receiving side.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |