Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/bash
  2. remote_name="Google Drive"
  3. remote_path="/"
  4.  
  5. if pidof -o %PPID -x "$0"; then
  6. exit 1
  7. fi
  8. echo "$1 -> $remote_name:$remote_path"
  9. rclone copy --progress "$1" "$remote_name":"$remote_path"
  10. echo "$remote_name:$remote_path -> $1"
  11. rclone copy --progress "$remote_name":"$remote_path" "$1"
  12. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement