rclone.el 522 B

123456789101112
  1. (defun rclone-post-buffer ()
  2. "Copies path of current buffer to b2/emacs"
  3. (interactive)
  4. (shell-command (format "rclone copy %s spw-b2:/spw01Backups1/emacs/" (buffer-file-name))))
  5. ;;; This assumes rclone is configured with my b2 setup
  6. (defun rclone-get-org ()
  7. "Copies orgmode file to temp location and opens in a new buffer"
  8. (interactive)
  9. (progn
  10. (shell-command (format "rclone copy spw-b2:/spw01Backups1/emacs/1.org %s" temporary-file-directory))
  11. (find-file (concat temporary-file-directory "1.org"))))