From 898dea102f9e7f1668810c0a91dab0f2db90d2bb Mon Sep 17 00:00:00 2001 From: shivansh02 Date: Mon, 24 Jun 2024 12:46:59 +0530 Subject: [PATCH] cachedir.tag preset added --- src/vorta/assets/UI/excludedialog.ui | 1 - src/vorta/store/migrations.py | 2 +- src/vorta/store/models.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/vorta/assets/UI/excludedialog.ui b/src/vorta/assets/UI/excludedialog.ui index 3807c2722..793ad3fdc 100644 --- a/src/vorta/assets/UI/excludedialog.ui +++ b/src/vorta/assets/UI/excludedialog.ui @@ -177,7 +177,6 @@ - diff --git a/src/vorta/store/migrations.py b/src/vorta/store/migrations.py index c52b88b46..11ff2b64a 100644 --- a/src/vorta/store/migrations.py +++ b/src/vorta/store/migrations.py @@ -257,7 +257,7 @@ def run_migrations(current_schema, db_connection): migrator.add_column_default( BackupProfileModel._meta.table_name, 'exclude_if_present', - pw.TextField(default="[] .nobackup\n[] .vortaignore"), + pw.TextField(default="[] .nobackup\n[] CACHEDIR.TAG"), ), ) diff --git a/src/vorta/store/models.py b/src/vorta/store/models.py index a30bfac64..d2117a10f 100644 --- a/src/vorta/store/models.py +++ b/src/vorta/store/models.py @@ -79,7 +79,7 @@ class BackupProfileModel(BaseModel): ssh_key = pw.CharField(default=None, null=True) compression = pw.CharField(default='lz4') exclude_patterns = pw.TextField(null=True) - exclude_if_present = pw.TextField(null=True, default="[] .nobackup\n[] .vortaignore") + exclude_if_present = pw.TextField(null=True, default="[] .nobackup\n[] CACHEDIR.TAG") schedule_mode = pw.CharField(default='off') schedule_interval_count = pw.IntegerField(default=3) schedule_interval_unit = pw.CharField(default='hours')