Wow - that did it; can not thank you enough. A few questions if I may:
1. Where can I read about the /usr/bin/ part? I've never seen this and I don't quite understand why adding this makes it work.
2. The output I got was:
Code:
dad@dad-VirtualBox:~$ sudo /usr/bin/rdiff-backup --exclude-special-files /home/dad /media/sf_shared/backup
[sudo] password for dad:
Warning: hard linking not supported by filesystem at /media/sf_shared/backup/rdiff-backup-data
dad@dad-VirtualBox:~$
I've seen this hard linking message before - on my system sf_shared/backup is on another ext4 internal HD. All references I've read about this hard linking message is where the end file system is fat or ntfs.
I'm testing this on a virtualbox system (ubutnu mate 16.04) - hence sf_shared/backup.
Ultimately I would like to run this at shutdown and have 'sort of' got that bit sorted - I just need to put this code into my script and it should work (tested with a small file set). However, backing up /home will take a little longer so I might have to play around with my systemd service scripting. A concern at the moment is - if I get the systemd part to run is there a way to get over the sudo/entering password bit? May be this is show-stopper in terms of 'just shutting down and it all happens' (the backup that is). I might just have to run this manually and then shutdown the pc.
Bookmarks