diff --git a/src/backupninja.in b/src/backupninja.in
index 0901742df25eeb563366427d5a12bdc91803557f..c3733cfd233bb947cec2798efac123c67516f04e 100755
--- a/src/backupninja.in
+++ b/src/backupninja.in
@@ -544,7 +544,7 @@ errormsg=""
 if [ "$singlerun" ]; then
    files=$singlerun
 else
-   files=`find $configdirectory -follow -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`
+   files=`find $configdirectory -follow -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' ! -name '*~' | sort -n`
 
    if [ -z "$files" ]; then
       info "No backup actions configured in '$configdirectory', run ninjahelper!"
diff --git a/src/ninjahelper.in b/src/ninjahelper.in
index 2a7faa90c6f905b9a29e87c339d8fa88d84a408e..4b4dceb555659b26d3b693f3116c2db4f2699607 100755
--- a/src/ninjahelper.in
+++ b/src/ninjahelper.in
@@ -240,7 +240,7 @@ while true; do
 menulist=
 action=
 let "i = 1"
-for file in `find ${configdirectory} -follow -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`; do
+for file in `find ${configdirectory} -follow -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' ! -name '*~' | sort -n`; do
    menulist="$menulist $i $file"
    actions[$i]=$file
    let "i += 1"