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 email@example.com:firstname.lastname@example.org:/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 email@example.com:firstname.lastname@example.org:/share/HP-Z640-1/
building file list ...
rsync: [sender] readdir("/home/alastair/pCloudDrive/Crypto Folder"): Permission denied (13)
221402 files to consider
After the hidden files the stream starts at the top of my home directory and includes Directories I was trying to exclude:-
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.