Ubuntu Version: 22.04.1 LTS
Deja-Dup version 42.9
I use Timeshift to back up my Ubuntu system.
This excludes folders:
/root, /home/myadminname and /home/myusername from the system backup.
The contents of these are mostly data files plus some "dot" folders relating to application configs for my user account, e.g. .ssh for SSH transfers for the user in question.
Naturally, I could include these in the Timeshift backup and that would save these files also in the event of a crash with a drive. But that would mean lost or old versions of data files, emails, etc after a restore.
So I am trying to separate the two concerns and use deja-dup for the three folders listed above using a separate drives (or partitions within a large common drive) for the system and data backups.
I formatted the backup drive with GParted, made a gpt partition table and ext4 partitions.
I configure deja-dup to do a backup of the three folders and run it. But it immediately produces an error:
Error creating directory /media/sandbar/Inspiron-databak/inspiron-5567: Permission denied
This seems a sort of file permissions type error. I realize that /root and /home/myadminname are strictly speaking outside the access of the myusername account from which I run deja-dup. The folder alluded to in the error output is a root permissioned folder. But surely I'd have thought that any application doing backups would already have (or at least ask for) root privileges if that is the problem . . .
Is it something else ?
Or do I need a better backup app than deja-dup ?
EDIT
I tried to do as suggested.
On my admin account I get this error when doing a backup of just /home/myadminname folder:
Traceback (innermost last):
File "/usr/bin/duplicity", line 92, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 75, in with_tempdir
fn()
File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 1555, in main
action = commandline.ProcessCommandLine(sys.argv[1:])
File "/usr/lib/python3/dist-packages/duplicity/commandline.py", line 1223, in ProcessCommandLine
config.backend = backend.get_backend(args[0])
File "/usr/lib/python3/dist-packages/duplicity/backend.py", line 223, in get_backend
obj = get_backend_object(url_string)
File "/usr/lib/python3/dist-packages/duplicity/backend.py", line 209, in get_backend_object
return factory(pu)
File "/usr/lib/python3/dist-packages/duplicity/backends/giobackend.py", line 96, in __init__
self.remote_file.make_directory_with_parents(None)
gi.repository.GLib.GError: g-io-error-quark: Error creating directory /media/sandbar/Inspiron-databak/inspiron-5567: Permission denied (14)
This suggests errors in deja-dup modules.
Besides this I don't think daily backups is adequate. yet all I see is a choice of Daily or Weekly backups in the config drop-down list. This is unlike the many YouTube tutorials in which Hourly backups is offered.
I also observe that since July 2022 various failure bugs are reported for deja-dup . . .
Is there any more reliable and user-friendly alternative out there, anyone ?