Add tilde expansion in file selection

Bug #1315715 reported by Jon Black
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Triaged
Wishlist
Unassigned

Bug Description

I'm want to backup my home folder but exclude all hidden files and folder. If I try the option `--exclude .*` I get the error:

Fatal Error: The file specification
    .*
cannot match any files in the base directory
    /home/jon

However, if I use the option `--exclude /home/jon/.*` it works fine. This is very contradicting.

duplicity version: 0.6.23

Jon Black (juan-black)
description: updated
Revision history for this message
no (anonubuntu8998) wrote :

I ran into this same issue trying to include symlinks in my home directory. Running `duplicity` with ~ as my working directory and using `--include Pictures` gave me identical errors to Jon Black but running with `--include /home/me/Pictures` worked perfectly.

Revision history for this message
no (anonubuntu8998) wrote :

I forgot to mention and can't find a way to edit my post: duplicity version 0.8.12

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

See FILE SELECTION in the man page. The '~' is not expanded. I'm making this a wishlist item because it does have a 'workaround' by specifying full pathnames.

Changed in duplicity:
status: New → Triaged
importance: Undecided → Wishlist
milestone: none → 0.8.23
summary: - Inconsistent file selection
+ Add tilde expansion in file selection
Changed in duplicity:
milestone: 0.8.23 → 0.8.24
Changed in duplicity:
milestone: 1.0.0 → none
milestone: none → 1.1.0
Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

This is being fixed, however your example is wrong:

$ ls ~.*
ls: ~.*: No such file or directory

should be:

$ ls ~/.*
<long list>

In my case, '~' is '/home/ken'. Your example yields '/home/ken.*'. Corrected, with a slash, it yields '/home/ken/.*'.

Changed in duplicity:
milestone: 1.2.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.