User Tools

Site Tools


wiki:rsync_troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:rsync_troubleshooting [2022/10/29 13:50] – created antisawiki:rsync_troubleshooting [2022/10/29 14:23] (current) – add Trouble with screen program antisa
Line 12: Line 12:
   30 14 * * 1 rsync -aq root@example.org:/root/backup/* /home/user/Documents/backup/   30 14 * * 1 rsync -aq root@example.org:/root/backup/* /home/user/Documents/backup/
  
 +===== Trouble with screen program =====
 +Add this to //.bashrc// file if there are issues when running rsync in [[https://linux.die.net/man/1/screen|screen]]:
 +
 +<code bash>
 +if [[ -z "${SSH_CONNECTION}" ]]; then
 +        export $(gnome-keyring-daemon --start )
 +fi
 +
 +if [ -S "$SSH_AUTH_SOCK" ] && [ ! -h "$SSH_AUTH_SOCK" ]; then
 +    ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
 +fi
 +export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
 +
 +</code>
 ====== Tested on ====== ====== Tested on ======
   *    * 
wiki/rsync_troubleshooting.1667044247.txt.gz · Last modified: 2022/10/29 13:50 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki