Commit 023b4e18 authored by Kai Lorenz's avatar Kai Lorenz

fixed unintended multiuserarchive bug

parent 1d754113
......@@ -19,5 +19,5 @@ then
varArchiveName=$({ date +%Y; echo -; hostname; echo -; echo $varTargerUser; } | sed ':a;N;s/\n/ /;ba' | tr -d '[:space:]')
mkdir /move
tar --exclude='/home/$varTargerUser/.local/share/Trash/' --exclude='/home/$varTargerUser/.cache/mozilla' --exclude='/home/$varTargerUser/.wine' --exclude='/home/$varTargerUser/.cache/google-chrome' --exclude='/home/$varTargerUser/.cache/pip' --exclude='/home/$varTargerUser/.cache/thumbnails' -zcvpf /move/$varArchiveName.tar.gz /home/$varTargerUser
mv -uv /move/* /mnt/nfs/webis20/code-in-archive/account-graveyard
mv -uv /move/varArchiveName* /mnt/nfs/webis20/code-in-archive/account-graveyard
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment