zaphyra's git: nixfiles

zaphyra's nixfiles

commit 71c47c393e4c402fbdf3a5ba7672560d6c4564f3
parent 8b6886a0c2dc3dc1eaff17d140faac62fcfbead0
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sat, 28 Jun 2025 11:40:28 +0200

config/nixos/modules/services/resticBackup: fix bug in sqlite-backup
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config/nixos/modules/services/resticBackup.nix b/config/nixos/modules/services/resticBackup.nix
@@ -169,7 +169,7 @@ in
                           echo "Dumping sqlite-database: ${db}"
                           mkdir -p /tmp/sqliteDatabases
                           ${pkgs.sqlite}/bin/sqlite3 ${db} ".backup '/tmp/sqliteDatabases/${builtins.baseNameOf db}.sqlite'"
-                          [ $(du -b /tmp/sqliteDatabases/${builtins.baseNameOf db}.sqlite-backup | cut -f1) -gt "50" ] || exit 1
+                          [ $(du -b /tmp/sqliteDatabases/${builtins.baseNameOf db}.sqlite | cut -f1) -gt "50" ] || exit 1
                         '') element.value.sqliteDatabases
                       ))
                     +