Menu

Automated Backup With Sudo Password

Help
KitchM
2017-09-05
2022-10-31
  • KitchM

    KitchM - 2017-09-05

    Since I am one of the admininstrators on a particular Linux computer, I must supply a password to make Grsync copy other's directories. How do I do that and run it automatically in the background?

     
  • Piero Orsoni

    Piero Orsoni - 2017-09-06

    If you need to run it in the background, I think you should use grsync-batch or rsync directly. Using sudo you can avoid typing any password.

     
  • Fred M. Philip

    Fred M. Philip - 2022-10-26

    Hello Piero
    I'm looking into the features of grsync to use it for makeups of my Linux desktop.
    So far what I see. It is an awesome tool.
    What I noticed during a test-run that some file/folders couldn't be backed-up due to permission issues (erro 23).
    I was wondering, is there a way to execute grsync with sudo privileges?
    e.g : under the tab "advanced options' there is a field 'aditional options'; wouldn't that be a good place to enter here the 'sudo' password? ;-)
    Or even to have a checkbox under tab 'basic options' that I could check and it would ask me for the sudo password.

    I also just saw that under the tab 'extra options' a check box for 'execute this command before rsync' exist; can I here perhaps enter the sudo command with password?

    And finally, is grsync generating a log file that I can review after the run?
    Many thanks for any feedback
    Fred

     
    • Piero Orsoni

      Piero Orsoni - 2022-10-28

      Hello,

      On Wed, Oct 26, 2022 at 9:43 PM Fred M. Philip dbyy@users.sourceforge.net
      wrote:

      Hello Piero
      I'm looking into the features of grsync to use it for makeups of my Linux
      desktop.
      So far what I see. It is an awesome tool.
      What I noticed during a test-run that some file/folders couldn't be
      backed-up due to permission issues (erro 23).
      I was wondering, is there a way to execute grsync with sudo privileges?
      e.g : under the tab "advanced options' there is a field 'aditional
      options'; wouldn't that be a good place to enter here the 'sudo' password?
      ;-)
      Or even to have a checkbox under tab 'basic options' that I could check
      and it would ask me for the sudo password.

      I also just saw that under the tab 'extra options' a check box for
      'execute this command before rsync' exist; can I here perhaps enter the
      sudo command with password?

      in the extra options tab you can set "run as superuser":

      [image: image.png]

      And finally, is grsync generating a log file that I can review after the
      run?

      yes, just look into the ".grsync" folder in your home directory, you will
      find some files with ".log" estension and named after the session.
      In the preferences screen you can enable and disable saving of those logs.

      Many thanks for any feedback
      Fred

      have a nice weekend!


      Automated Backup With Sudo Password
      https://sourceforge.net/p/grsync/discussion/1085771/thread/5db4d66a/?limit=25#4255


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/grsync/discussion/1085771/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Piero Orsoni
      orsoni@gmail.com

       
  • Fred M. Philip

    Fred M. Philip - 2022-10-28

    hi Piero,
    thanks for your quick feedback.
    It helps me a lot.
    But one questions remains, the man for grsync-batch doesn't explains much what it does/how to use it.
    Can you shed some light on grsync-batch? Purpose/how to use it?
    Thanks in advance.
    Fred

     

Log in to post a comment.