Search:

Type: Posts; User: freeflyjohn; Keyword(s):

Page 1 of 6 1 2 3 4

Search: Search took 0.03 seconds.

  1. [ubuntu] Re: How to use rdiff-backup remotely whilst maintaining user/group/attributes etc

    Thanks all for taking the time to comment

    I am at a complete loss and don't know how to proceed, therefore I think I will just have to accept defeat and stick to onsite backups only.

    Its very...
  2. [ubuntu] Re: How to use rdiff-backup remotely whilst maintaining user/group/attributes etc

    Thanks TheFu

    I have limited understanding of users and groups, I have only ever used the default users (i.e. root and the user created during the Ubuntu installation).

    On the Ubuntu server, the...
  3. [ubuntu] How to use rdiff-backup remotely whilst maintaining user/group/attributes etc

    I am looking for guidance on how to use rdiff-backup to perform a remote backup over ssh, whilst maintaining user/group/attributes etc

    I have an Ubuntu server machine and an Ubuntu client machine,...
  4. Re: Backup script on remote machine: Should it use sudo & how to avoid password reque

    Thanks TheFu,

    In fact, everything is working correctly with the exception of permissions etc due this root-eqiuvlent user on the server side.

    So I am 90% there, if I can just get these...
  5. Re: Backup script on remote machine: Should it use sudo & how to avoid password reque

    Thanks aljames2

    To summarise, I have four 4TB HDDs in my Ubuntu server which I use for storage of files.

    Most of these files are not really system files, they are typically documents,...
  6. Re: Backup script on remote machine: Should it use sudo & how to avoid password reque

    Can you elaborate on how it should be done then please?

    I used this guide to create the user with root equivalent privileges…
    ...
  7. Re: Backup script on remote machine: Should it use sudo & how to avoid password reque

    Thanks TheFu

    I realise that ~/.ssh/ssh_config is for outgoing SSH connections and ~/.ssh/sshd_config is for incoming connections

    I think I understand the idea of the root-equivalent account ?...
  8. Re: Backup script on remote machine: Should it use sudo & how to avoid password reque

    Thanks SeijiSensei

    In my case this is not possible, because the backup script will be ran on an iMac (at my parents house) to do remote offsite backups of the server at my house.

    Therefore it...
  9. Re: Backup script on remote machine: Should it use sudo & how to avoid password reque

    Thanks TheFu, I've worked out how to do the ~/.ssh/config file on the remote machine (iMac).

    I added the following lines to iMac ~/.ssh/ssh_config file...



    Host 192.168.6.1
    User...
  10. Re: Backup script on remote machine: Should it use sudo & how to avoid password reque

    Thanks TheFu


    You seem to have ignored the "root-equivalent" account, which I've mentioned a few times. That's the key.

    Not ignored, just didnt understand.

    So I did some further research...
  11. Re: Backup script on remote machine: Should it use sudo & how to avoid password reque

    Are you referring to the user and group of the ssh keys ?



    The id_rsa and id_rsa.pub key user and group on the Ubuntu server is ubuntuusername:ubuntuusername (in the /home/ubuntuusername/.ssh...
  12. Re: Backup script on remote machine: Should it use sudo & how to avoid password reque

    This is the issue I am trying to understand.

    If I SSH into the server WITHOUT sudo....


    ssh user@192.168.6.1 -p 12345

    ... I get straight into the server without the need of a password.
    ...
  13. Re: Backup script on remote machine: Should it use sudo & how to avoid password reque

    Thanks TheFu

    So I should make a new user on the IMac (eg called backup) and give that user root privileges ?

    But when I use sudo with the script it asks me for the server password. How do I...
  14. Backup script on remote machine: Should it use sudo & how to avoid password request ?

    I have almost got my backup script working for offsite local and remote backups, using rdiff-backup and rsync.

    However, I am slightly confused how to run the script on the remote machine:



    ...
  15. Replies
    16
    Views
    17

    Re: Problem using variable in bash script

    PS. This is the SSD the root drive is on...

    https://ubuntuforums.org/attachment.php?attachmentid=293296&stc=1
  16. Replies
    16
    Views
    17

    Re: Problem using variable in bash script

    I think I found the problem.... a path error in the backup script !!!!

    My intention was to do an offsite local backup (-offsite.loc switch), but I noticed in the script file that the onsite backup...
  17. Replies
    16
    Views
    17

    Re: Problem using variable in bash script

    Thanks SeijiSensei, I've done that before with rsync but I don't think it can be done with rdiff-backup ?

    Initial investigation into my server no longer working, I'm wondering if the root drive...
  18. Replies
    16
    Views
    17

    Re: Problem using variable in bash script

    ggrrr
  19. Replies
    16
    Views
    17

    Re: Problem using variable in bash script

    Absoultely gutted.... I'm done with backups :(

    Having spent weeks implementing Wireguard VPN and trying to get rsync and rdiff-backup working remotely, my server has now broke for some reason
    ...
  20. Replies
    16
    Views
    17

    Re: Problem using variable in bash script

    Thanks TheFu,

    I shall try your fix for RECYCLE.BIN and add the 3 exclusions you mentioned for rdiff-backup.

    Regarding rsycn, doesnt the following part of the script keep the options separate...
  21. Replies
    16
    Views
    17

    Re: Problem using variable in bash script

    Thanks TheFu

    The script I posted is only a snippet and slightly modified.

    The actual script is shown below, so hopefully this resolves your concerns ?

    For rsync, the command is separate from...
  22. Replies
    16
    Views
    17

    Re: Problem using variable in bash script

    Fixed it by using eval in front, as shown below...


    eval $cmd_rsync $rsync_options $src_rsync $dest_path
  23. Replies
    16
    Views
    17

    Re: Problem using variable in bash script

    Thanks MAFoElffen

    I tried your code but its still not working, the error is...




    Performing remote offsite backup...
    /usr/bin/rsync -a --progress -l --delete --rsh='ssh -p 12345'...
  24. Replies
    16
    Views
    17

    Problem using variable in bash script

    I have the following script which sets the varibale 'cmd_rsync' for the rsync command...



    cmd_rsync="/usr/bin/rsync -a --progress -l --delete --rsh='ssh -p 12345'"
    ...
  25. rdiff-backup error: directory exists, but does not look like a rdiff-backup directory

    I am getting the following error when running an initial rdiff-backup on a freshly formatted USB HDD....



    Fatal Error: Destination directory

    /media/backupStorageOS

    exists, but does not...
Results 1 to 25 of 146
Page 1 of 6 1 2 3 4