Skip to content

Instantly share code, notes, and snippets.

@adrelanos
Created December 7, 2018 03:57
Show Gist options
  • Save adrelanos/b8cf47decfaf71c2a7bab3fc8d1851d2 to your computer and use it in GitHub Desktop.
Save adrelanos/b8cf47decfaf71c2a7bab3fc8d1851d2 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -x
set -e
src_a_file=~/some-file
src_b_file=~/some-file.asc
touch "$src_a_file" "$src_b_file"
destination=/home/hulahoop/libvirt/
rsync \
--perms \
--chmod=uog+r \
--times \
--partial \
--progress \
--verbose \
--rsh \
ssh \
"$src_a_file" \
"$src_b_file" \
hulahoop@whonix.org:"$destination"
true $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment