Conversation
changed ls call so as not to include . and .. (ls manpage: -A List all entries except for . and ... Always set for the super-user.)
But The command without |
Well it did on my hosting provider's server, where I login as a normal user. I'm still waiting for the restore... :-) |
@wadoli can you the |
|
cc @DeepDiver1975 @karlitschek @bantu What do you think? |
maybe use find instead of ls ? |
Agree with @DeepDiver1975 |
As a starting point: |
find . -mindepth 1 -maxdepth 1 \
-type d -name data -prune -o \
-type d -name config -prune -o \
-exec rm -rf {} \; |
|
I would prefer #254 |
Fine with me. Thanks. |
changed
ls
call so as not to include.
and..
(ls
manpage:-A
List all entries except for.
and..
. Always set for the super-user.)