Backup only selected Data

Hello,

I became this error?
I will only include/backuped selected Data.

Running backup command from /cache/localhost/2 to back up /source/user/Pfad Name
Options: [-log backup -storage Name-SFTP -threads 4 -stats]
2024-03-20 13:42:13.709 INFO REPOSITORY_SET Repository set to /source/user/Pfad Name
2024-03-20 13:42:13.709 INFO STORAGE_SET Storage set to sftp://Path
2024-03-20 13:42:14.012 INFO COMPRESSION_LEVEL Zstd compression is enabled (level: best)
2024-03-20 13:42:14.085 INFO BACKUP_START No previous backup found
2024-03-20 13:42:14.085 INFO BACKUP_LIST Listing all chunks
2024-03-20 13:44:26.100 INFO BACKUP_INDEXING Indexing /source/user/Pfad Name
2024-03-20 13:44:26.100 INFO SNAPSHOT_FILTER Parsing filter file /cache/localhost/2/.duplicacy/filters
2024-03-20 13:44:26.100 INFO SNAPSHOT_FILTER Loaded 34 include/exclude pattern(s)
2024-03-20 13:44:26.101 ERROR SNAPSHOT_EMPTY No files under the repository to be backed up
No files under the repository to be backed up

I have only include Filter.

Many Thanks!

Greetings

Revan335

Whats my issue?
Only include filter are wrong?

Why he said no files to be backuped?

Many thanks!

Test Filter from GUI

 +Backup/Test/*

Have the same error. No files to backuped.

How can I reset the Job?
Than can I restart the Test with a clean Job/Base.

Other Jobs and Filters works.

Is this a complete filter list that you have?

Change it to

+Backup/
+Backup/Test/*

You can read more in the documentation

Yes, this Test is the complete Filter List that i found in the filter list Directory in the Duplicacy Folder.
Why create the GUI this not correct directly?

The Job Started. :partying_face:
But backuped not only the Test Folder. :pensive:

Maybe i dont understand the Documentation correctly.

An Exclude excluded the complete Folder and the include negate.

I just don’t understand it.
I have now tried several filter constellations, but I can’t manage to backup just this test folder.
So it looks like I don’t understand the documentation to find the right constellation. :sob:

When i understand this correct Duplicacy is the order.
going to Backup and than to Backup/Test and backup the Backup/Test Folder and his Data.

When i have
Backup
Backup 2
Backup 3

The Filter from above only Backup Backup/Test and his Data, everything else are excluded, why only include filters are exist.

+Backup/
+Backup/Test/*
-*
+Backup/
+Backup/Test/*
-*
-Backup 2
-Backup 3
+Backup/Test/*
+Backup/

Are not working too.

The End Result in Future is include selected Files and Folders on all three Locations.
Backup
Backup 2
Backup 3

Where are you specifying the filters? If you use web ui then you shall specify filters in the web ui.

Editing them there is not easy, so instead you can can specify path to the filter file there starting with @ and edit that actual file with proper text editor.

The lines in the filter file must be relative to the root of repository.

Yes, i edited/created with the GUI.
But in the File is the same that i posted.
He is relatived through the Web UI with the Root Folder.

Many Thanks!

Then thiss shall work.

E.g. if you you configure duplicacy to backup /Users/james folder, and you want to to only backup stuff under /Users/james/Backup/Test, and nothing else, then the above filter file shall accomplish that.

1 Like

I’m blind :see_no_evil: and don’t see that’s are only one * and Web UI created automatic the Pattern with * when I click on include.

Maybe this can be fixed or with an Option to further excluded this mind problems.

I Test it with the Rest of the Data.

The Test Job is successful.