Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- remote_name="Google Drive"
- remote_path="/"
- if pidof -o %PPID -x "$0"; then
- exit 1
- fi
- echo "$1 -> $remote_name:$remote_path"
- rclone copy --progress "$1" "$remote_name":"$remote_path"
- echo "$remote_name:$remote_path -> $1"
- rclone copy --progress "$remote_name":"$remote_path" "$1"
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement