Restore multiple accounts using one command
Hello
I try restore multiple account using command
first step
ls *.tar.gz /home > cat.txt;
++++++++++++++++
cat.txt file have lines
user1.tar.gz
user2.tar.gz ( account exist )
user3.tar.gz
+++++++++++++++++
second
for i in `cat cat.txt`; do /scripts/restorepkg $i; done;
the problem is when account exist and command is terminated
how to force to bypass an existing account and force command to continue next account from cat.txt
Regards
-
I have it :) simple added || true for i in `cat cat.txt`; do /scripts/restorepkg $i || true ; done; 0 -
I'm glad you were able to find a good solution to this :D 0
Please sign in to leave a comment.
Comments
2 comments