![]() ![]()
I looked a bit into Pexpect and Paramiko but expect doesn't seem very secure and I wasn't sure how to configure Paramiko so I could rsync from the local computer to the remote server. #Grsync export as rsync script password#The only trouble I'm coming across is passing the password (entered in the GUI) to the server after I execute the command :,You would first have to encrypt the password, using whatever method your OS uses and then pass the encrypted password (unless it will be encrypted somewhere along the line), as only the very, very foolish store unencrypted passwords.,Since I want the user to authenticate everytime they use the GUI I don't want to setup an automated ssh key session. If you have any recommendations I could make to improve the script, then let me know!Ĭopyright © 2020-2022 All Rights Reserved.Basically I'm looking for a way to pass a password to the server (and trust the host) after the rsync command without any sort of terminal interaction (the purpose of the GUI).,So I'm creating a backup GUI in Python which basically asks the user for their username/password and source directory so it can be rsynced over to a remote server. provided (grsync-batch) Can import and export sessions on file i.e. This isn’t intended as a backup tool, but just a point-and-click utility for copying files to a remote server from your file manager. Can run custom commands before (and stop in case of failure) and after rsync Shell script for batch, crontab use etc. You should bare in mind that shell scripts like this can be finicky and can flake out when you might need it most. I’ve included some comments in the top of the script that could be tweaked. You can modify the script more to your liking if it doesn’t exactly meet your needs. You can use your mouse or keyboard arrows to select your preferred destination(s). If you have XTerm installed, the rsync_util script visible to $PATH, a complete configuration file, and the execute permission bit applied to the script file, then you should see an XTerm window with an Ncurses interface spawn. For myself, I’ve enabled the action for all file types.Īt this point, you should be able to right click any file and select your custom action. Grsync is basically a front end to the rsync command and is available.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |