Commit 9121bd5a authored by Kai Lorenz's avatar Kai Lorenz

migrated archive script to ceph

parent da9746cd
......@@ -17,5 +17,6 @@ echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
varArchiveName=$({ date +%Y; echo -; hostname; echo -; echo $varTargerUser; } | sed ':a;N;s/\n/ /;ba' | tr -d '[:space:]')
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 /mnt/nfs/webis20/code-in-archive/account-graveyard/$varArchiveName.tar.gz /home/$varTargerUser
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 /mnt/ceph/storage/data-in-progress/account-graveyard/$varArchiveName.tar.gz /home/$varTargerUser
chmod -R 777 /mnt/ceph/storage/data-in-progress/account-graveyard/$varArchiveName.tar.gz
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