Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-10-07 03:26:00

fixit
Member
Registered: 2015-01-19
Posts: 115

Help with rsync custom action

Is there a way to fix this so it prompts for a destination directory?

rsync --progress -r -u %F

Thanks.


Ubuntu-Mate 22.04

Offline

#2 2022-10-07 08:05:59

PaperNick
Member
Registered: 2013-05-26
Posts: 106

Re: Help with rsync custom action

Hey, I'm not sure what your use case is, but maybe you can use a tool like yad to show a destination directory dialog:

sh -c 'rsync --progress -r -u "$(yad --file --directory --width=980 --height=660 --quoted-output --center --title "Select a destination directory")"'

If you want to select multiple directories, add the following flag to the yad command:

--multiple

Last edited by PaperNick (2022-10-07 08:09:10)

Offline

#3 2022-10-07 09:27:55

fixit
Member
Registered: 2015-01-19
Posts: 115

Re: Help with rsync custom action

Thanks for your help. but this did not work.

sh -c 'rsync --progress -r -u "$(yad --file --directory --width=980 --height=660 --quoted-output --center --title "Select a destination directory")"'

Last edited by fixit (2022-10-07 13:52:18)


Ubuntu-Mate 22.04

Offline

#4 2022-10-07 16:16:25

PaperNick
Member
Registered: 2013-05-26
Posts: 106

Re: Help with rsync custom action

I think wrapping it in "sh -c" and "--quoted-output" broke it for some reason. This should work now:

rsync --progress -r -u %F "$(yad --file --directory --width=980 --height=660 --center --title "Select a destination directory")"

Offline

#5 2022-10-08 01:01:17

fixit
Member
Registered: 2015-01-19
Posts: 115

Re: Help with rsync custom action

Thanks. It works great.


Ubuntu-Mate 22.04

Offline

Board footer

Powered by FluxBB