Please be patient as I am still trying to understand why I am having a problem with LuckyBackup (LB). I have read and have a hard copy of the Rsync man page document, 80 odd pages of it and I am starting on again using my home HP Z640 workstation which does not have so much critical data in my home directory.
Using LB I have created a task as follows:-
In the Excluded tab I have ticked all 8 of the Templates (Temporary folders, Backup files, Caches folders, Trash, System mount folders, System folders, lost+found, .gvfs). I do not have any user defined exclusions set.
In the Include tab I have two directories as Normal Include: /alastair/Documents/ and /alastair/Downloads/
I created these using the pattern selector button for Specific directory and local browser button to select these two directories and added them to my Include list.
In the Remote tab I have ticked Use remote host and set the user destination User and @Host. I have selected for 2 snapshots and allowed the creation of extra directories. I shall need help with Remote module and ssh but have not used these settings at present.
In the Command options tab I have ticked Preserved; ownership times, permissions, symlinks, device special files.
I have omitted hard links and numeric group and user IDs.
I have ticked the Delete files on destination, Recurse into directories and Skip newer destination files.
I have omitted Ignore files the CVS way, Destination is FAT/NTFS and Attempt super-user activities.
The cli command which this setup gives me is the following command:-
rsync -h --progress --stats -r -tgo -p -l -D --update --delete-after --include=/alastair/Documents/ --include=/alastair/Downloads/ --delete-excluded --exclude=**/*tmp*/ --exclude=**/*cache*/ --exclude=**/*Cache*/ --exclude=**~ --exclude=/mnt/*/** --exclude=/media/*/** --exclude=**/lost+found*/ --exclude=/var/run/** --exclude=/run/** --exclude=/proc/** --exclude=/dev/** --exclude=/sys/** --exclude=**/*Trash*/ --exclude=**/*trash*/ --exclude=**/.gvfs/ --protect-args /home/alastair admin@192.168.169.131:admin@192.168.169.131:/share/HP-Z640-1/
I have been working through these options, referring to the man page and am still trying to work out if this is what I might have set up if I had worked directly in terminal.
I have also added -n for dry run.
What I have not yet worked out the logic of this command but the result is that the command is including all the directories and hidden files in my home directory. I am showing some excerpts of the output below.
This is the initial stream of files showing the start and the first few of my ~.files as wanted:-
alastair@HP-Z640-1:~> rsync -h --progress --stats -r -tgo -n -p -l -D --update --delete-after --include=/alastair/Documents/ --include=/alastair/Downloads/ --delete-excluded --exclude=**/*tmp*/ --exclude=**/*cache*/ --exclude=**/*Cache*/ --exclude=**~ --exclude=/mnt/*/** --exclude=/media/*/** --exclude=**/lost+found*/ --exclude=/var/run/** --exclude=/run/** --exclude=/proc/** --exclude=/dev/** --exclude=/sys/** --exclude=**/*Trash*/ --exclude=**/*trash*/ --exclude=**/.gvfs/ --protect-args /home/alastair admin@192.168.169.131:admin@192.168.169.131:/share/HP-Z640-1/
admin@192.168.169.131's password:
building file list ...
96700 files...
rsync: [sender] readdir("/home/alastair/pCloudDrive/Crypto Folder"): Permission denied (13)
221402 files to consider
alastair/
alastair/.bash_history
alastair/.bashrc
alastair/.emacs
alastair/.gtkrc-2.0
alastair/.i18n
alastair/.inputrc
alastair/.lesshst
alastair/.profile
alastair/.wget-hsts
alastair/.xdm-global-lock
alastair/.xim.template
alastair/.xinitrc.template
alastair/.config/
alastair/.config/QtProject.conf
alastair/.config/Trolltech.conf
alastair/.config/akonadi-firstrunrc
alastair/.config/akonadi-migrationrc
After the hidden files the stream starts at the top of my home directory and includes Directories I was trying to exclude:-
alastair/.thunderbird/tjyvwksv.default-release/storage/permanent/indexeddb+++fx-devtools/.metadata-v2
alastair/.thunderbird/tjyvwksv.default-release/storage/permanent/indexeddb+++fx-devtools/idb/
alastair/.thunderbird/tjyvwksv.default-release/storage/permanent/indexeddb+++fx-devtools/idb/478967115deegvatroootlss--cans.sqlite
alastair/.thunderbird/tjyvwksv.default-release/storage/permanent/indexeddb+++fx-devtools/idb/478967115deegvatroootlss--cans.files/
alastair/.thunderbird/tjyvwksv.default-release/storage/temporary/
alastair/AppImage_Apps/
alastair/AppImage_Apps/AppImageUpdate-x86_64.AppImage
alastair/AppImage_Apps/appimaged-655-x86_64.AppImage
alastair/AppImage_Apps/appimagelauncher-lite-2.2.0-travis995-0f91801-x86_64(1).AppImage
alastair/AppImage_Apps/Kdenlive/
alastair/AppImage_Apps/Kdenlive/kdenlive-22.12.3-x86_64.AppImage
It is clear there is a conflict which may be the result of the order in which the list is created or sorted but I cannot yet see it. Any help would be much appreciated.
Alastair.