Xfce Forum

Sub domains
 

You are not logged in.

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

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

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 24.04

Offline

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

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

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: 129

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 24.04

Offline

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

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

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: 129

Re: Help with rsync custom action

Thanks. It works great.


Ubuntu-Mate 24.04

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 522.1 KiB (Peak: 522.95 KiB) ]