Skip to content

Rsync through SSH

-e flag to specify the protocol

rsync --progress -e ssh root@vectorspace.xyz:/root/something.apk  ./

Get files from remote

After first creating the website directory, I did:

rsync -chavzP --stats vector@resonyze.xyz:~/website/ website/

Rsync backup files from list

backup ()
{
  cd ~
  rsync --info=progress2 -r -z --delete --files-from=sync-files . vector@resonyze.xyz:~/backup/
}

Example of text file file: s

bin/
.xinitrc
.xbindkeysrc
.Xmodmap
.vimrc
.bashrc
.inputrc
.bash_history
sync-files
notes/
.config/compton/compton.conf
.tmux.conf
books/

Comments