Jump to content
Acidham

Rsync Folders

Recommended Posts

Rsync Folders for Alfred

Keep a set of folders in sync with their target folders via rsync. 

 

Usage

rsync:    

  •  executes all rsync configurations
  •  add a new entry to rsync batch
  •  delete an entry from the batch file

     

 

Downloads:

 

https://github.com/Acidham/rsync-folders

http://www.packal.org/workflow/rsync-folders

Edited by Acidham

Share this post


Link to post

Haha! I'm going to use the shit out of this workflow :D

 

Feature requests! ?

 

Remote source/target folders? That's far any away my main use for rsync, tbh, though I've plenty of local folders to add as well :)

 

It'd be cool to be able to run just one configuration instead of all of them. (Perhaps run by default, ⌘↩ to delete, or vice versa?) I use rsync to back up my drive, but the target drive isn't mounted most of the time. It'd also just be generally cool to be able to only sync the folder I just changed.

Share this post


Link to post

Thx for the feedback and suggestions!

 

I added a few of your feature requests but auto mount is missing and a way to figure out which of the folders contain changes. Hope that helps a bit!?

Share this post


Link to post
On 06/04/2018 at 11:03 PM, Acidham said:

but auto mount is missing and a way to figure out which of the folders contain changes

 

I don't want automount or auto-execution when a directory has changed. I just want to not have to run every configuration every time because the target might not be mounted or I want to quickly sync only the directory I just changed.

Share this post


Link to post

Doesn't seem to work for me. I get following debug information:

Starting debug for 'RSync Folders'

 

[2018-04-11 11:19:22][ERROR: action.script] 0:49: execution error: sh: -c: line 0: unexpected EOF while looking for matching `''

sh: -c: line 1: syntax error: unexpected end of file (2)

Share this post


Link to post
Quote

Which version or rsync are you using? You can find version when you open WF in Alfred preferences, top right corner [x] symbol. 

 

Version 1.3

Share this post


Link to post

Sounds like there might be a quotation mark (or another "special" character?) in one of your folder paths. Is that perhaps the case?

Share this post


Link to post

Thanks @deanishe. Yeah you're right, that's it. There's a single apostrophe in a destination folder. I hope there's a work-around for this, because I don't have any control over the name of the destination.

Share this post


Link to post
On 4/2/2018 at 7:34 PM, Acidham said:

Rsync Folders for Alfred

Keep a set of folders in sync with their target folders via rsync. 

 

 

-  Is there any way to insert rsync+ssh (like: server:/directory ) and rsync:// (ie. site::module/directory ) destination or sources?

- Reverse action(s)?

- Selective push/pull?

My use case is editing a directory locally, and sync to the remote, run Ansible/etc. perhaps even make a remote quick fix, and to pull back the fix before I git commit/push.

 

Share this post


Link to post

I was only focusing on local folder but your suggestions sounds reasonable. These days my time is limited but happy to commit pull requests on that soon ;)

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...