Done, no backup needed. Because of --exclude="*" ?

Asked by Simone Gaiarin

When I try to backup I get "Done, no backup needed". Moreover the first backup is actually empty. I've noticed that in the rsync backup there is the option --exclude="*" which probably prevent anything to be backup.

I've tried to remove all the Excludes in the settings (* was not present among the rules tough) but after saving all the excludes appear again there. If I instead remove all but at least one, then everything is saved correctly. This is another problem tough.

I would like to understand where the --exclude="*" comes from.

This is the rsync command

rsync -rtDHh --links --no-p --no-g --no-o --info=progress2 --no-i-r --rsh="ssh -p 22 -o IdentityFile=/home/simone/.ssh/backup_id_rsa" --delete --delete-excluded -i --dry-run --out-format="BACKINTIME: %i %n%L" --chmod=Du+wx --exclude="/home/simone/.local/share/backintime/mnt/4_5268" --exclude="/home/simone/.local/share/backintime" --exclude=".local/share/backintime/mnt" --include="/home/simone/WIP/testBackups/" --include="/home/simone/WIP/" --include="/home/simone/" --include="/home/" --exclude=".Private" --include="/home/simone/WIP/testBackups/**" --exclude="*" / 'backup@192.168.0.250:"/volume1/backups/backintime/simone-PC/simone/4/20160220-194610-179/backup/"'"

Related question:
https://answers.launchpad.net/backintime/+question/101045

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu backintime Edit question
Assignee:
No assignee Edit question
Solved by:
Simone Gaiarin
Solved:
Last query:
Last reply:
Revision history for this message
Simone Gaiarin (simgunz) said :
#1

Some extra information:

* Backintime version: 1.1.12
* The same behavior happens with a local backup (not over SSH).
* fileinfo doesn't contain any of the files that are in the folder that should be backed up, thus confirming that nothing has been copied

Here's the log of the local test backup:

========== Take snapshot (profile 5): Sun Feb 21 09:26:14 2016 ==========

[I] ...
[I] Take snapshot
[I] rsync -rtDHh --links --no-p --no-g --no-o --info=progress2 --no-i-r --delete --delete-excluded -v --chmod=Du+wx --exclude="/home/simone/WIP/backupFolderDelete" --exclude="/home/simone/.local/share/backintime" --exclude=".local/share/backintime/mnt" --include="/home/simone/WIP/testBackups/" --include="/home/simone/WIP/" --include="/home/simone/" --include="/home/" --exclude=".Private" --include="/home/simone/WIP/testBackups/**" --exclude="*" / "/home/simone/WIP/backupFolderDelete/backintime/dragonfly/simone/5/new_snapshot/backup/"
[I] Take snapshot (rsync: building file list ... done)
[I] Take snapshot (rsync: ./)
[I] Take snapshot (rsync: home/)
[I] Take snapshot (rsync: home/simone/)
[I] Take snapshot (rsync: sent 89 bytes received 25 bytes 228.00 bytes/sec)
[I] Take snapshot (rsync: total size is 0 speedup is 0.00)
[I] Save config file ...
[I] Save permission ...

Revision history for this message
Simone Gaiarin (simgunz) said :
#2

Found the problem.

The target directory /home/simone/WIP/backupFolderDelete/backintime/dragonfly/simone/ contains a symlink (WIP -> /media/drive/wip) and because of this rsync doesn't copies anything.

Executing rsync with -L works. Although it's simpler to specify the full path of the destination directory to avoid rsync to dereference all the symlinks of the things we want to backup.

As a reference for others:

Regarding --exclude="*", rsync gives the include/exclude flags a priority depending on the order they are specified, so that --exclude="*" will be partially overridden by the --include(s) we specify before.