rclone.el 715 B

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