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