god dammit
This commit is contained in:
Salt 2020-07-11 09:01:45 -05:00
parent 9861f54c0f
commit 6da299c1df

View File

@ -36,7 +36,7 @@ fi
# WE MAKE BACKUP NOW SERGEI
for dir in /home/*; do
username="$(basename -- "$dir")"
forcefile="$dir/.backup/forcemontly"
forcefile="$dir/.backup/force"
[ -d "$dir/.backup" ] || continue
for file in "$dir/.backup/"*; do [ -e "$file" ] || continue; done
tar czhf "$OUTDIR/desktop-$username-{{ inventory_hostname }}-$(date -Iseconds).tar.gz" "$dir/.backup/"*