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...
Type: Posts; User: freeflyjohn; Keyword(s):
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...
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...
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,...
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...
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,...
Can you elaborate on how it should be done then please?
I used this guide to create the user with root equivalent privileges…
...
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 ?...
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...
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...
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...
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...
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.
...
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...
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:
...
PS. This is the SSD the root drive is on...
https://ubuntuforums.org/attachment.php?attachmentid=293296&stc=1
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...
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...
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
...
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...
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...
Fixed it by using eval in front, as shown below...
eval $cmd_rsync $rsync_options $src_rsync $dest_path
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'...
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'"
...
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...