emacs/elisp/rclone.el
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
6 (defun rclone-post-buffer ()
7 "Copies path of current buffer to b2/emacs"
8 (interactive)
9 (shell-command (format "rclone copy %s spw-b2:/spw01Backups1/emacs/" (buffer-file-name))))
10
11 ;;; This assumes rclone is configured with my b2 setup
12 (defun rclone-get-org ()
13 "Copies orgmode file to temp location and opens in a new buffer"
14 (interactive)
15 (progn
16 (shell-command (format "rclone copy spw-b2:/spw01Backups1/emacs/1.org %s" temporary-file-directory))
17 (find-file (concat temporary-file-directory "1.org"))))